patch-2.1.79 linux/net/wanrouter/wanproc.c
Next file: linux/net/x25/x25_dev.c
Previous file: linux/net/wanrouter/wanmain.c
Back to the patch index
Back to the overall index
- Lines: 26
- Date:
Mon Jan 12 14:46:27 1998
- Orig file:
v2.1.78/linux/net/wanrouter/wanproc.c
- Orig date:
Thu Dec 4 14:53:57 1997
diff -u --recursive --new-file v2.1.78/linux/net/wanrouter/wanproc.c linux/net/wanrouter/wanproc.c
@@ -56,7 +56,7 @@
/****** Function Prototypes *************************************************/
/* Proc filesystem interface */
-static int router_proc_perms (struct inode*, int);
+static int router_proc_perms(struct inode *, int);
static ssize_t router_proc_read(struct file* file, char* buf, size_t count, loff_t *ppos);
/* Methods for preparing data for reading proc entries */
@@ -118,6 +118,7 @@
NULL, /* rmdir */
NULL, /* mknod */
NULL, /* rename */
+ NULL, /* follow link */
NULL, /* readlink */
NULL, /* readpage */
NULL, /* writepage */
@@ -339,7 +340,7 @@
static ssize_t router_proc_read(struct file* file, char* buf, size_t count,
loff_t *ppos)
{
- struct inode *inode;
+ struct inode *inode = file->f_dentry->d_inode;
struct proc_dir_entry* dent;
char* page;
int pos, offs, len;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov