dosfs: get_byte_offset requires an unsigned offset

No reason for it to be negative, and gcc -Wextra complains when
it's signed.
This commit is contained in:
snow flurry 2020-11-16 20:30:41 -08:00
parent c8494b86bd
commit 50f3806f15
2 changed files with 2 additions and 2 deletions

View file

@ -243,7 +243,7 @@ read_fat_chain(dosfs_t *fsd, unsigned int first, int *length)
* offset, i.e. one that can be used with lseek()/pread().
*/
int
get_byte_offset(dosfs_t *fsd, dosfile_t *file, int f_offset)
get_byte_offset(dosfs_t *fsd, dosfile_t *file, unsigned int f_offset)
{
int coff, csz;

View file

@ -80,6 +80,6 @@ void close_image(dosfs_t *);
dosfile_t *dos_listdir(dosfs_t *, unsigned int);
void dos_freedir(dosfile_t *);
int get_byte_offset(dosfs_t *, dosfile_t *, int);
int get_byte_offset(dosfs_t *, dosfile_t *, unsigned int);
#endif /* !_FAT12_H */