X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=fs%2Faffs%2Famigaffs.c;h=52a6407682e65e1aa0c82805c2d052cc09b20361;hb=b4a133da2eaccb844a7beaef16ffd9c76a0d21d3;hp=de37ec842340c3943de5c7351a1e70cc7c5e4268;hpb=dee119b1fa672d65f34f86fe5cefa81d71ed040e;p=~andy%2Flinux diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c index de37ec84234..52a6407682e 100644 --- a/fs/affs/amigaffs.c +++ b/fs/affs/amigaffs.c @@ -390,10 +390,10 @@ secs_to_datestamp(time_t secs, struct affs_date *ds) ds->ticks = cpu_to_be32(secs * 50); } -mode_t +umode_t prot_to_mode(u32 prot) { - int mode = 0; + umode_t mode = 0; if (!(prot & FIBF_NOWRITE)) mode |= S_IWUSR; @@ -421,7 +421,7 @@ void mode_to_prot(struct inode *inode) { u32 prot = AFFS_I(inode)->i_protect; - mode_t mode = inode->i_mode; + umode_t mode = inode->i_mode; if (!(mode & S_IXUSR)) prot |= FIBF_NOEXECUTE;