patch-2.3.25 linux/net/sunrpc/stats.c
Next file: linux/net/unix/af_unix.c
Previous file: linux/net/sunrpc/clnt.c
Back to the patch index
Back to the overall index
- Lines: 18
- Date:
Thu Oct 28 14:34:44 1999
- Orig file:
v2.3.24/linux/net/sunrpc/stats.c
- Orig date:
Sat Jan 2 17:55:06 1999
diff -u --recursive --new-file v2.3.24/linux/net/sunrpc/stats.c linux/net/sunrpc/stats.c
@@ -126,14 +126,10 @@
static inline struct proc_dir_entry *
do_register(const char *name, void *data, int issvc)
{
- struct proc_dir_entry *ent;
-
dprintk("RPC: registering /proc/net/rpc/%s\n", name);
- ent = create_proc_entry(name, 0, proc_net_rpc);
- ent->read_proc = issvc? svc_proc_read : rpc_proc_read;
- ent->data = data;
-
- return ent;
+ return create_proc_read_entry(name, 0, proc_net_rpc,
+ issvc? svc_proc_read : rpc_proc_read,
+ data);
}
struct proc_dir_entry *
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)