patch-2.3.48 linux/fs/fcntl.c

Next file: linux/fs/fifo.c
Previous file: linux/fs/fat/inode.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.47/linux/fs/fcntl.c linux/fs/fcntl.c
@@ -259,7 +259,7 @@
 
 /* Table to convert sigio signal codes into poll band bitmaps */
 
-static int band_table[NSIGPOLL+1] = {
+static long band_table[NSIGPOLL+1] = {
 	~0,
 	POLLIN | POLLRDNORM,			/* POLL_IN */
 	POLLOUT | POLLWRNORM | POLLWRBAND,	/* POLL_OUT */
@@ -291,7 +291,7 @@
 			si.si_errno = 0;
 		        si.si_code  = reason;
 			if (reason < 0 || reason > NSIGPOLL)
-				si.si_band  = ~0;
+				si.si_band  = ~0L;
 			else
 				si.si_band = band_table[reason];
 			si.si_fd    = fa->fa_fd;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)