HPPA: Initialize EPOLLONESHOT and EPOLLET correctly.
authorCarlos O'Donell <carlos@codesourcery.com>
Mon, 9 Jan 2012 05:47:04 +0000 (00:47 -0500)
committerCarlos O'Donell <carlos@codesourcery.com>
Mon, 9 Jan 2012 05:47:04 +0000 (00:47 -0500)
The value of EPOLLONESHOT and EPOLLET should be
initialized with an unsigned value.

ChangeLog.hppa
sysdeps/unix/sysv/linux/hppa/sys/epoll.h

index 8988cf4..e7a80e5 100644 (file)
@@ -1,5 +1,10 @@
 2012-01-08  Carlos O'Donell  <carlos@systemhalted.org>
 
+       * sysdeps/unix/sysv/linux/hppa/sys/epoll.h (EPOLLONESHOT)
+       (EPOLLET): Initialize with unsiged values.
+
+2012-01-08  Carlos O'Donell  <carlos@systemhalted.org>
+
        * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Sync from libc copy.
 
 2012-01-08  Carlos O'Donell  <carlos@systemhalted.org>
index b11a34d..53037d6 100644 (file)
@@ -65,9 +65,9 @@ enum EPOLL_EVENTS
 #define EPOLLHUP EPOLLHUP
     EPOLLRDHUP = 0x2000,
 #define EPOLLRDHUP EPOLLRDHUP
-    EPOLLONESHOT = (1 << 30),
+    EPOLLONESHOT = 1u << 30,
 #define EPOLLONESHOT EPOLLONESHOT
-    EPOLLET = (1 << 31)
+    EPOLLET = 1u << 31
 #define EPOLLET EPOLLET
   };