diff options
author | Flavio Cruz <flaviocruz@gmail.com> | 2015-12-29 22:32:38 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2015-12-29 22:36:42 +0100 |
commit | 8b87e8c44466f6852c9544c908edef8075757dda (patch) | |
tree | 1aa3190278c4b01ea9bbe2f0e188bfdce0413366 /fatfs/fat.c | |
parent | 2280227bedf69b733a589f12ac6b6d5a4fc36af4 (diff) |
fix compiler warnings in hurd/isofs
* fatfs/dir.c: Use casts to avoid warnings.
* fatfs/fat.c: Use unsigned char in fat_{from,to}_epoch.
* fatfs/fat.h: Change arguments accordingly.
* fatfs/fat.c (fat_read_sblock): Use size_t instead.
* fatfs/inode.c (diskfs_cached_lookup_in_dirbuf): Remove err variable.
* fatfs/inode.c (diskfs_user_read_node): Don't cast constant.
* fatfs/inode.c (write_node): Check for errors in vm_map.
Diffstat (limited to 'fatfs/fat.c')
-rw-r--r-- | fatfs/fat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fatfs/fat.c b/fatfs/fat.c index 14926ff3..4c98f623 100644 --- a/fatfs/fat.c +++ b/fatfs/fat.c @@ -69,7 +69,7 @@ void fat_read_sblock (void) { error_t err; - int read; + size_t read; sblock = malloc (sizeof (struct boot_sector)); err = store_read (store, 0, sizeof (struct boot_sector), @@ -706,7 +706,7 @@ fat_from_unix_filename(char *fn, const char *un, int ul) /* Return Epoch-based time from a MSDOS time/date pair. */ void -fat_to_epoch (char *date, char *time, struct timespec *ts) +fat_to_epoch (unsigned char *date, unsigned char *time, struct timespec *ts) { struct tm tm; @@ -735,7 +735,7 @@ fat_to_epoch (char *date, char *time, struct timespec *ts) /* Return MSDOS time/date pair from Epoch-based time. */ void -fat_from_epoch (char *date, char *time, time_t *tp) +fat_from_epoch (unsigned char *date, unsigned char *time, time_t *tp) { struct tm *tm; |