Skip to content

Commit

Permalink
ncpfs: propagate umode_t
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <[email protected]>
  • Loading branch information
Al Viro committed Jan 4, 2012
1 parent 18df225 commit 5eee25c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions fs/ncpfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -919,7 +919,7 @@ static int ncp_instantiate(struct inode *dir, struct dentry *dentry,
goto out;
}

int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
int ncp_create_new(struct inode *dir, struct dentry *dentry, umode_t mode,
dev_t rdev, __le32 attributes)
{
struct ncp_server *server = NCP_SERVER(dir);
Expand All @@ -928,7 +928,7 @@ int ncp_create_new(struct inode *dir, struct dentry *dentry, int mode,
int opmode;
__u8 __name[NCP_MAXPATHLEN + 1];

PPRINTK("ncp_create_new: creating %s/%s, mode=%x\n",
PPRINTK("ncp_create_new: creating %s/%s, mode=%hx\n",
dentry->d_parent->d_name.name, dentry->d_name.name, mode);

ncp_age_dentry(server, dentry);
Expand Down
2 changes: 1 addition & 1 deletion fs/ncpfs/ncplib_kernel.h
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ int ncp_dirhandle_alloc(struct ncp_server *, __u8 vol, __le32 dirent, __u8 *dirh
int ncp_dirhandle_free(struct ncp_server *, __u8 dirhandle);

int ncp_create_new(struct inode *dir, struct dentry *dentry,
int mode, dev_t rdev, __le32 attributes);
umode_t mode, dev_t rdev, __le32 attributes);

static inline int ncp_is_nfs_extras(struct ncp_server* server, unsigned int volnum) {
#ifdef CONFIG_NCPFS_NFS_NS
Expand Down
2 changes: 1 addition & 1 deletion fs/ncpfs/symlink.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ int ncp_symlink(struct inode *dir, struct dentry *dentry, const char *symname) {
char *rawlink;
int length, err, i, outlen;
int kludge;
int mode;
umode_t mode;
__le32 attr;
unsigned int hdr;

Expand Down

0 comments on commit 5eee25c

Please sign in to comment.