]> git.pld-linux.org Git - packages/util-linux.git/blob - util-linux-blk.patch
- fixed comments (this strangeness was caused by sizeof(sizeof()) breakage in kernel
[packages/util-linux.git] / util-linux-blk.patch
1 --- util-linux-2.12/disk-utils/elvtune.c.orig   2002-03-08 23:57:49.000000000 +0100
2 +++ util-linux-2.12/disk-utils/elvtune.c        2003-12-28 00:47:21.716360592 +0100
3 @@ -37,8 +37,8 @@
4         int max_bomb_segments;
5  } blkelv_ioctl_arg_t;
6  
7 -#define BLKELVGET   _IOR(0x12,106,sizeof(blkelv_ioctl_arg_t))
8 -#define BLKELVSET   _IOW(0x12,107,sizeof(blkelv_ioctl_arg_t))
9 +#define BLKELVGET   _IOR(0x12,106,size_t) /* blkelv_ioctl_arg_t, broken by sizeof() */
10 +#define BLKELVSET   _IOW(0x12,107,size_t) /* blkelv_ioctl_arg_t, broken by sizeof() */
11  
12  static void
13  usage(void) {
14 --- util-linux-2.12/disk-utils/blockdev.c.orig  2003-12-28 00:46:18.483973376 +0100
15 +++ util-linux-2.12/disk-utils/blockdev.c       2003-12-28 00:47:12.833710960 +0100
16 @@ -24,8 +24,8 @@
17  #define BLKRASET   _IO(0x12,98)
18  #define BLKRAGET   _IO(0x12,99)
19  #define BLKSSZGET  _IO(0x12,104)
20 -#define BLKBSZGET  _IOR(0x12,112,sizeof(int))
21 -#define BLKBSZSET  _IOW(0x12,113,sizeof(int))
22 +#define BLKBSZGET  _IOR(0x12,112,size_t) /* int, broken by sizeof() */
23 +#define BLKBSZSET  _IOW(0x12,113,size_t) /* int, broken by sizeof() */
24  #endif
25  
26  /* Maybe <linux/hdreg.h> could be included */
27 --- util-linux-2.12/fdisk/common.h.orig 2003-07-13 15:59:53.000000000 +0200
28 +++ util-linux-2.12/fdisk/common.h      2003-12-28 00:52:43.568431640 +0100
29 @@ -6,7 +6,7 @@
30  #define BLKGETSIZE   _IO(0x12,96)    /* return device size */
31  #define BLKFLSBUF    _IO(0x12,97)    /* flush buffer cache */
32  #define BLKSSZGET    _IO(0x12,104)   /* get block device sector size */
33 -#define BLKGETSIZE64 _IOR(0x12,114,8)  /* 8 = sizeof(u64) */
34 +#define BLKGETSIZE64 _IOR(0x12,114,size_t) /* u64, broken by sizeof(); sizeof(8) was the same on 32-bit, but not on 64-bit archs */
35  
36  /* including <linux/hdreg.h> also fails */
37  struct hd_geometry {
This page took 0.075825 seconds and 4 git commands to generate.