From 61c23e6234db0e94cd850e88536401910ac61516 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 8 Apr 2013 14:31:38 -0700 Subject: BZ#14280: Fix Hurd ioctl macro to avoid warning. --- sysdeps/mach/hurd/bits/ioctls.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sysdeps/mach') diff --git a/sysdeps/mach/hurd/bits/ioctls.h b/sysdeps/mach/hurd/bits/ioctls.h index 4917055f91..fe3ca08264 100644 --- a/sysdeps/mach/hurd/bits/ioctls.h +++ b/sysdeps/mach/hurd/bits/ioctls.h @@ -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. */ -- cgit 1.4.1