patch-2.3.41 linux/fs/namei.c

Next file: linux/fs/ncpfs/dir.c
Previous file: linux/fs/isofs/util.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.40/linux/fs/namei.c linux/fs/namei.c
@@ -1341,7 +1341,7 @@
 	return error;
 }
 
-int vfs_readlink(struct dentry *dentry, char *buffer, int buflen, char *link)
+int vfs_readlink(struct dentry *dentry, char *buffer, int buflen, const char *link)
 {
 	u32 len;
 
@@ -1359,7 +1359,7 @@
 
 static inline struct dentry *
 __vfs_follow_link(struct dentry *dentry, struct dentry *base,
-		unsigned follow, char *link)
+		unsigned follow, const char *link)
 {
 	struct dentry *result;
 	UPDATE_ATIME(dentry->d_inode);
@@ -1377,7 +1377,7 @@
 
 struct dentry *
 vfs_follow_link(struct dentry *dentry, struct dentry *base,
-unsigned int follow, char *link)
+unsigned int follow, const char *link)
 {
 	return __vfs_follow_link(dentry,base,follow,link);
 }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)