summaryrefslogtreecommitdiff
path: root/fatfs/fat.h
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2015-12-29 22:32:38 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2015-12-29 22:36:42 +0100
commit8b87e8c44466f6852c9544c908edef8075757dda (patch)
tree1aa3190278c4b01ea9bbe2f0e188bfdce0413366 /fatfs/fat.h
parent2280227bedf69b733a589f12ac6b6d5a4fc36af4 (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.h')
-rw-r--r--fatfs/fat.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/fatfs/fat.h b/fatfs/fat.h
index eac7015a..d4a509ea 100644
--- a/fatfs/fat.h
+++ b/fatfs/fat.h
@@ -318,8 +318,8 @@ struct cluster_chain
/* Prototyping. */
void fat_read_sblock (void);
-void fat_to_epoch (char *, char *, struct timespec *);
-void fat_from_epoch (char *, char *, time_t *);
+void fat_to_epoch (unsigned char *, unsigned char *, struct timespec *);
+void fat_from_epoch (unsigned char *, unsigned char *, time_t *);
error_t fat_getcluster (struct node *, cluster_t, int, cluster_t *);
void fat_truncate_node (struct node *, cluster_t);
error_t fat_extend_chain (struct node *, cluster_t, int);