summaryrefslogtreecommitdiff
path: root/fatfs/dir.c
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/dir.c
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/dir.c')
-rw-r--r--fatfs/dir.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/fatfs/dir.c b/fatfs/dir.c
index 66c95d27..b9b7ae55 100644
--- a/fatfs/dir.c
+++ b/fatfs/dir.c
@@ -497,13 +497,14 @@ dirscanblock (vm_address_t blockaddr, struct node *dp, int idx,
component. */
continue;
- if (fatnamematch (entry->name, name, namelen))
+ if (fatnamematch ((const char *) entry->name, name, namelen))
break;
}
if (consider_compress
- && (ds->type == LOOKING
- || (ds->type == COMPRESS && ds->nbytes > nbytes)))
+ && ((enum slot_status) ds->type == LOOKING
+ || ((enum slot_status) ds->type == COMPRESS &&
+ ds->nbytes > nbytes)))
{
ds->type = CREATE;
ds->stat = COMPRESS;
@@ -934,7 +935,7 @@ diskfs_get_directs (struct node *dp,
/* See if there's room to hold this one. */
- fat_to_unix_filename(ep->name, name);
+ fat_to_unix_filename ((const char *) ep->name, name);
namlen = strlen(name);
/* Perhaps downcase it? */