patch-2.1.78 linux/fs/proc/root.c

Next file: linux/fs/romfs/inode.c
Previous file: linux/fs/proc/proc_devtree.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.77/linux/fs/proc/root.c linux/fs/proc/root.c
@@ -368,7 +368,7 @@
 /*
  * /proc/self:
  */
-static int proc_self_readlink(struct inode * inode, char * buffer, int buflen)
+static int proc_self_readlink(struct dentry *dentry, char *buffer, int buflen)
 {
 	int len;
 	char tmp[30];
@@ -380,12 +380,12 @@
 	return len;
 }
 
-static struct dentry * proc_self_follow_link(struct inode *inode, struct dentry *base)
+static struct dentry * proc_self_follow_link(struct dentry *dentry,
+						struct dentry *base)
 {
-	int len;
 	char tmp[30];
 
-	len = sprintf(tmp, "%d", current->pid);
+	sprintf(tmp, "%d", current->pid);
 	return lookup_dentry(tmp, base, 1);
 }	
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov