git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was manufactured by cvs2svn to create tag
[linux-2.6.git]
/
net
/
sunrpc
/
sysctl.c
diff --git
a/net/sunrpc/sysctl.c
b/net/sunrpc/sysctl.c
index
1b9616a
..
e69a7fb
100644
(file)
--- a/
net/sunrpc/sysctl.c
+++ b/
net/sunrpc/sysctl.c
@@
-58,14
+58,14
@@
rpc_unregister_sysctl(void)
static int
proc_dodebug(ctl_table *table, int write, struct file *file,
static int
proc_dodebug(ctl_table *table, int write, struct file *file,
- void __user *buffer, size_t *lenp
, loff_t *ppos
)
+ void __user *buffer, size_t *lenp)
{
char tmpbuf[20], c, *s;
char __user *p;
unsigned int value;
size_t left, len;
{
char tmpbuf[20], c, *s;
char __user *p;
unsigned int value;
size_t left, len;
- if ((
*p
pos && !write) || !*lenp) {
+ if ((
file->f_
pos && !write) || !*lenp) {
*lenp = 0;
return 0;
}
*lenp = 0;
return 0;
}
@@
-115,7
+115,7
@@
proc_dodebug(ctl_table *table, int write, struct file *file,
done:
*lenp -= left;
done:
*lenp -= left;
-
*p
pos += *lenp;
+
file->f_
pos += *lenp;
return 0;
}
return 0;
}