From: Al Viro Date: Mon, 1 Feb 2010 02:03:58 +0000 (-0500) Subject: nilfs: sanitize const/signedness in dealing with ->d_name.name X-Git-Tag: v2.6.34-rc1~205^2~20 X-Git-Url: http://bbs.cooldavid.org/git/?a=commitdiff_plain;h=072f98b4637eddcbdf2178fc84f382e2ee522f08;p=net-next-2.6.git nilfs: sanitize const/signedness in dealing with ->d_name.name Signed-off-by: Al Viro --- diff --git a/fs/nilfs2/dir.c b/fs/nilfs2/dir.c index 26402b9b305..0092840492e 100644 --- a/fs/nilfs2/dir.c +++ b/fs/nilfs2/dir.c @@ -224,7 +224,7 @@ fail: * len <= NILFS_NAME_LEN and de != NULL are guaranteed by caller. */ static int -nilfs_match(int len, const char * const name, struct nilfs_dir_entry *de) +nilfs_match(int len, const unsigned char *name, struct nilfs_dir_entry *de) { if (len != de->name_len) return 0; @@ -465,7 +465,7 @@ void nilfs_set_link(struct inode *dir, struct nilfs_dir_entry *de, int nilfs_add_link(struct dentry *dentry, struct inode *inode) { struct inode *dir = dentry->d_parent->d_inode; - const char *name = dentry->d_name.name; + const unsigned char *name = dentry->d_name.name; int namelen = dentry->d_name.len; unsigned chunk_size = nilfs_chunk_size(dir); unsigned reclen = NILFS_DIR_REC_LEN(namelen);