patch-2.1.62 linux/drivers/char/lp.c
Next file: linux/drivers/isdn/avmb1/capi.c
Previous file: linux/drivers/block/ide-probe.c
Back to the patch index
Back to the overall index
-  Lines: 24
-  Date:
Fri Oct 31 11:23:36 1997
-  Orig file: 
v2.1.61/linux/drivers/char/lp.c
-  Orig date: 
Wed Sep 24 20:05:46 1997
diff -u --recursive --new-file v2.1.61/linux/drivers/char/lp.c linux/drivers/char/lp.c
@@ -272,9 +272,9 @@
 	return total_bytes_written;
 }
 
-static long lp_write(struct inode * inode, struct file * file,
-	const char * buf, unsigned long count)
+static ssize_t lp_write(struct file * file, const char * buf, size_t count, loff_t *ppos)
 {
+	struct inode *inode = file->f_dentry->d_inode;
 	unsigned int minor = MINOR(inode->i_rdev);
 	int retv;
 
@@ -315,9 +315,9 @@
 }
 
 /* Status readback confirming to ieee1284 */
-static long lp_read(struct inode * inode, struct file * file, 
-		   char * buf, unsigned long count)
+static ssize_t lp_read(struct file * file, char * buf, size_t count, loff_t *ppos)
 {
+	struct inode *inode = file->f_dentry->d_inode;
 	unsigned char z=0, Byte=0, status;
 	char *temp;
 	int retval;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov