[BusyBox-cvs] busybox/util-linux fdisk.c,1.13,1.14

Erik Andersen andersen at busybox.net
Fri Dec 12 19:05:19 UTC 2003


Update of /var/cvs/busybox/util-linux
In directory winder:/tmp/cvs-serv32691/util-linux

Modified Files:
	fdisk.c 
Log Message:
Be certain we use a correct entity when performing the 
BLKGETSIZE64 ioctl -- don't just assume 8,


Index: fdisk.c
===================================================================
RCS file: /var/cvs/busybox/util-linux/fdisk.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- fdisk.c	4 Dec 2003 07:07:14 -0000	1.13
+++ fdisk.c	12 Dec 2003 19:05:15 -0000	1.14
@@ -60,7 +60,7 @@
  * _IOR rather differently */ 
 #undef _IOR
 #define _IOR(type,nr,size)      _IOC(_IOC_READ,(type),(nr),sizeof(size))
-#define BLKGETSIZE64 _IOR(0x12,114,8)  /* 8 = sizeof(u64) */
+#define BLKGETSIZE64 _IOR(0x12,114,uint64_t)
 
 /*
    fdisk.h




More information about the busybox-cvs mailing list