mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-22 21:10:07 +00:00
BZ#14280: Fix Hurd ioctl macro to avoid warning.
This commit is contained in:
parent
96497bb806
commit
61c23e6234
@ -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"?):
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user