]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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 8988cf4f38e9364939e01212afb24763a4f6dbf5..e7a80e50d05378052dfef0b2f1b0b97dc99f631f 100644 (file)
@@ -1,3 +1,8 @@
+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.
index b11a34d459f8b3c1bff138465b2071213622f79d..53037d63201556e7c6ce265ae1339d9413bbcf66 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
   };