diff options
author | Andrew Morton <akpm@digeo.com> | 2002-11-21 19:31:14 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@penguin.transmeta.com> | 2002-11-21 19:31:14 -0800 |
commit | 443bfb9d84810e868e8c7e81bdb5746819ca1916 (patch) | |
tree | 3b8b149f4a3049f6e89a002328ec67503fd9bc0f /fs/ext3/xattr.c | |
parent | 67d9df19a06f1a1145a789a5bc6407c5cc715ae6 (diff) | |
download | history-443bfb9d84810e868e8c7e81bdb5746819ca1916.tar.gz |
[PATCH] Make inode_ops->setxattr value parameter const
Patch from Andreas Gruenbacher <agruen@suse.de>
The setxattr inode operation is defined like this in 2.4 and 2.5:
int (*setxattr) (struct dentry *dentry, const char *name,
void *value, size_t size, int flags);
the original type of the value parameter was `const void *'; the const
obviously has been lost at some point. The definition should be:
int (*setxattr) (struct dentry *dentry, const char *name,
const void *value, size_t size, int flags);
Diffstat (limited to 'fs/ext3/xattr.c')
-rw-r--r-- | fs/ext3/xattr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/xattr.c b/fs/ext3/xattr.c index 75d4659507f47a..7b42a75dd579d5 100644 --- a/fs/ext3/xattr.c +++ b/fs/ext3/xattr.c @@ -223,7 +223,7 @@ ext3_listxattr(struct dentry *dentry, char *buffer, size_t size) */ int ext3_setxattr(struct dentry *dentry, const char *name, - void *value, size_t size, int flags) + const void *value, size_t size, int flags) { struct ext3_xattr_handler *handler; struct inode *inode = dentry->d_inode; |