patch-2.1.71 linux/net/wanrouter/wanproc.c
Next file: linux/Documentation/Configure.help
Previous file: linux/net/unix/af_unix.c
Back to the patch index
Back to the overall index
- Lines: 24
- Date:
Wed Dec 3 15:20:04 1997
- Orig file:
v2.1.70/linux/net/wanrouter/wanproc.c
- Orig date:
Thu Jul 17 10:06:10 1997
diff -u --recursive --new-file v2.1.70/linux/net/wanrouter/wanproc.c linux/net/wanrouter/wanproc.c
@@ -57,8 +57,7 @@
/* Proc filesystem interface */
static int router_proc_perms (struct inode*, int);
-static long router_proc_read(struct inode* inode, struct file* file, char* buf,
- unsigned long count);
+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 */
@@ -337,9 +336,10 @@
* <0 error
*/
-static long router_proc_read(struct inode* inode, struct file* file,
- char* buf, unsigned long count)
+static ssize_t router_proc_read(struct file* file, char* buf, size_t count,
+ loff_t *ppos)
{
+ struct inode *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