diff options
Diffstat (limited to 'fs/ncpfs')
-rw-r--r-- | fs/ncpfs/dir.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index 98d1b8c6fd8c..a2d50f803a17 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c | |||
@@ -38,7 +38,7 @@ static int ncp_rmdir(struct inode *, struct dentry *); | |||
38 | static int ncp_rename(struct inode *, struct dentry *, | 38 | static int ncp_rename(struct inode *, struct dentry *, |
39 | struct inode *, struct dentry *); | 39 | struct inode *, struct dentry *); |
40 | static int ncp_mknod(struct inode * dir, struct dentry *dentry, | 40 | static int ncp_mknod(struct inode * dir, struct dentry *dentry, |
41 | int mode, dev_t rdev); | 41 | umode_t mode, dev_t rdev); |
42 | #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) | 42 | #if defined(CONFIG_NCPFS_EXTRAS) || defined(CONFIG_NCPFS_NFS_NS) |
43 | extern int ncp_symlink(struct inode *, struct dentry *, const char *); | 43 | extern int ncp_symlink(struct inode *, struct dentry *, const char *); |
44 | #else | 44 | #else |
@@ -1201,12 +1201,12 @@ out: | |||
1201 | } | 1201 | } |
1202 | 1202 | ||
1203 | static int ncp_mknod(struct inode * dir, struct dentry *dentry, | 1203 | static int ncp_mknod(struct inode * dir, struct dentry *dentry, |
1204 | int mode, dev_t rdev) | 1204 | umode_t mode, dev_t rdev) |
1205 | { | 1205 | { |
1206 | if (!new_valid_dev(rdev)) | 1206 | if (!new_valid_dev(rdev)) |
1207 | return -EINVAL; | 1207 | return -EINVAL; |
1208 | if (ncp_is_nfs_extras(NCP_SERVER(dir), NCP_FINFO(dir)->volNumber)) { | 1208 | if (ncp_is_nfs_extras(NCP_SERVER(dir), NCP_FINFO(dir)->volNumber)) { |
1209 | DPRINTK(KERN_DEBUG "ncp_mknod: mode = 0%o\n", mode); | 1209 | DPRINTK(KERN_DEBUG "ncp_mknod: mode = 0%ho\n", mode); |
1210 | return ncp_create_new(dir, dentry, mode, rdev, 0); | 1210 | return ncp_create_new(dir, dentry, mode, rdev, 0); |
1211 | } | 1211 | } |
1212 | return -EPERM; /* Strange, but true */ | 1212 | return -EPERM; /* Strange, but true */ |