Commit 072f98b4 authored by Al Viro's avatar Al Viro

nilfs: sanitize const/signedness in dealing with ->

Signed-off-by: default avatarAl Viro <>
parent 0319003d
......@@ -224,7 +224,7 @@ static struct page *nilfs_get_page(struct inode *dir, unsigned long n)
* 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->;
const unsigned char *name = dentry->;
int namelen = dentry->d_name.len;
unsigned chunk_size = nilfs_chunk_size(dir);
unsigned reclen = NILFS_DIR_REC_LEN(namelen);
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment