Skip to content

Commit

Permalink
Fix more linter warnings.
Browse files Browse the repository at this point in the history
  • Loading branch information
larsimmisch committed Sep 6, 2023
1 parent f33ca06 commit 7222970
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion include/rem_aufile.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,5 @@ int aufile_read(struct aufile *af, uint8_t *p, size_t *sz);
int aufile_write(struct aufile *af, const uint8_t *p, size_t sz);
size_t aufile_get_size(struct aufile *af);
size_t aufile_get_length(struct aufile *af, struct aufile_prm *prm);
size_t aufile_set_position(struct aufile *af, struct aufile_prm *prm, size_t pos_ms);
size_t aufile_set_position(struct aufile *af, struct aufile_prm *prm,
size_t pos_ms);
6 changes: 3 additions & 3 deletions rem/aufile/aufile.c
Original file line number Diff line number Diff line change
Expand Up @@ -298,12 +298,12 @@ size_t aufile_set_position(struct aufile *af, struct aufile_prm *prm,
return EINVAL;
}

// Seek to the beginning of the file
/* Seek to the beginning of the file */
if (fseek(af->f, 0, SEEK_SET) < 0) {
return errno;
}
// this is only used for the side effect of moving the file ptr to the
// first data block.
/* this is only used for the side effect of moving the file ptr to the
first data block. */
err = wav_header_decode(&fmt, &pos, af->f);
if (err) {
return err;
Expand Down

0 comments on commit 7222970

Please sign in to comment.