patch-2.0.21-2.1.0 linux/drivers/char/psaux.c

Next file: linux/drivers/char/pty.c
Previous file: linux/drivers/char/msbusmouse.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file lx2.0/v2.0.21/linux/drivers/char/psaux.c linux/drivers/char/psaux.c
@@ -388,11 +388,12 @@
  * Write to the aux device.
  */
 
-static int write_aux(struct inode * inode, struct file * file, const char * buffer, int count)
+static long write_aux(struct inode * inode, struct file * file,
+	const char * buffer, unsigned long count)
 {
 	int retval = 0;
 
-	if (count > 0) {
+	if (count) {
 		int written = 0;
 
 		/* disable kbd bh to avoid mixing of cmd bytes */
@@ -425,7 +426,8 @@
  * Write to the 82C710 mouse device.
  */
 
-static int write_qp(struct inode * inode, struct file * file, const char * buffer, int count)
+static long write_qp(struct inode * inode, struct file * file,
+	const char * buffer, unsigned long count)
 {
 	int i = count;
 
@@ -444,7 +446,8 @@
  * Put bytes from input queue to buffer.
  */
 
-static int read_aux(struct inode * inode, struct file * file, char * buffer, int count)
+static long read_aux(struct inode * inode, struct file * file,
+	char * buffer, unsigned long count)
 {
 	struct wait_queue wait = { current, NULL };
 	int i = count;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov