summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@digeo.com>2002-11-21 19:31:14 -0800
committerLinus Torvalds <torvalds@penguin.transmeta.com>2002-11-21 19:31:14 -0800
commit443bfb9d84810e868e8c7e81bdb5746819ca1916 (patch)
tree3b8b149f4a3049f6e89a002328ec67503fd9bc0f /include/linux
parent67d9df19a06f1a1145a789a5bc6407c5cc715ae6 (diff)
[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 'include/linux')
-rw-r--r--include/linux/fs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h
index 86c370cc3355..5183f5f7c91c 100644
--- a/include/linux/fs.h
+++ b/include/linux/fs.h
@@ -781,7 +781,7 @@ struct inode_operations {
int (*permission) (struct inode *, int);
int (*setattr) (struct dentry *, struct iattr *);
int (*getattr) (struct vfsmount *mnt, struct dentry *, struct kstat *);
- int (*setxattr) (struct dentry *, const char *, void *, size_t, int);
+ int (*setxattr) (struct dentry *, const char *,const void *,size_t,int);
ssize_t (*getxattr) (struct dentry *, const char *, void *, size_t);
ssize_t (*listxattr) (struct dentry *, char *, size_t);
int (*removexattr) (struct dentry *, const char *);