patch-2.1.124 linux/drivers/sbus/char/sunkbd.c

Next file: linux/drivers/sbus/char/sunmouse.c
Previous file: linux/drivers/sbus/char/su32.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.123/linux/drivers/sbus/char/sunkbd.c linux/drivers/sbus/char/sunkbd.c
@@ -1325,11 +1325,11 @@
 }
 
 /* Needed by X */
-static int kbd_fasync (struct file *filp, int on)
+static int kbd_fasync (int fd, struct file *filp, int on)
 {
 	int retval;
 
-	retval = fasync_helper (filp, on, &kb_fasync);
+	retval = fasync_helper (fd, filp, on, &kb_fasync);
 	if (retval < 0)
 		return retval;
 	return 0;
@@ -1479,7 +1479,7 @@
 	kbd_redirected = 0;
 	kbd_opened = 0;
 
-	kbd_fasync (f, 0);
+	kbd_fasync (-1, f, 0);
 	return 0;
 }
 

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