From 8b87e8c44466f6852c9544c908edef8075757dda Mon Sep 17 00:00:00 2001 From: Flavio Cruz Date: Tue, 29 Dec 2015 22:32:38 +0100 Subject: 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. --- fatfs/fat.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fatfs/fat.c') 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; -- cgit v1.2.3