patch-2.4.13 linux/drivers/block/blkpg.c
Next file: linux/drivers/block/cciss.c
Previous file: linux/drivers/block/ataflop.c
Back to the patch index
Back to the overall index
-  Lines: 14
-  Date:
Mon Oct 15 13:27:42 2001
-  Orig file: 
v2.4.12/linux/drivers/block/blkpg.c
-  Orig date: 
Sun Sep 23 11:40:57 2001
diff -u --recursive --new-file v2.4.12/linux/drivers/block/blkpg.c linux/drivers/block/blkpg.c
@@ -242,10 +242,10 @@
 			/* add BLKGETSIZE64 too */
 			g = get_gendisk(dev);
 			if (!g)
-				longval = 0;
+				ulongval = 0;
 			else
-				longval = g->part[MINOR(dev)].nr_sects;
-			return put_user(longval, (long *) arg);
+				ulongval = g->part[MINOR(dev)].nr_sects;
+			return put_user(ulongval, (unsigned long *) arg);
 #endif
 #if 0
 		case BLKRRPART: /* Re-read partition tables */
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)