Be certain we use a correct entity when performing the
authorEric Andersen <andersen@codepoet.org>
Fri, 12 Dec 2003 19:05:15 +0000 (19:05 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 12 Dec 2003 19:05:15 +0000 (19:05 -0000)
BLKGETSIZE64 ioctl -- don't just assume 8,

util-linux/fdisk.c

index bd929d88db5aab7ac7551f84a3c3158f96696407..31a7d8076b5889d47d1618b789a5f47fe162365a 100644 (file)
@@ -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