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:
parent
c8494b86bd
commit
50f3806f15
|
@ -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;
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue