]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
BZ#14280: Fix Hurd ioctl macro to avoid warning.
authorRoland McGrath <roland@hack.frob.com>
Mon, 8 Apr 2013 21:31:38 +0000 (14:31 -0700)
committerRoland McGrath <roland@hack.frob.com>
Mon, 8 Apr 2013 21:31:38 +0000 (14:31 -0700)
ChangeLog
sysdeps/mach/hurd/bits/ioctls.h

index 9e33f24922e358a213bbb34028ab6ed78414a4b4..20be9856308133e64ab0aab6f05ae88ff738e778 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-04-08  Roland McGrath  <roland@hack.frob.com>
+
+       [BZ #14280]
+       * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
+       when computing value.
+
 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
 
        * math/README.libm-test (How can I generate "libm-test-ulps"?):
index 4917055f9100cf0421fc1d45b258dd06b3f7bb1c..fe3ca0826487bd4e7f0c162deb37367e1a38a05f 100644 (file)
@@ -141,7 +141,7 @@ enum __ioctl_datum { IOC_8, IOC_16, IOC_32, IOC_64 };
 
 /* Construct an individual type field for TYPE.  */
 #define _IOTS(type)    \
-  (sizeof (type) == 8 ? IOC_64 : (sizeof (type) >> 1))
+  (sizeof (type) == 8 ? IOC_64 : (enum __ioctl_datum) (sizeof (type) >> 1))
 
 /* Construct a type information field for
    a single argument of the scalar TYPE.  */