From: Carlos O'Donell Date: Mon, 9 Jan 2012 05:47:04 +0000 (-0500) Subject: HPPA: Initialize EPOLLONESHOT and EPOLLET correctly. X-Git-Tag: glibc-2.16-ports-before-merge~305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad8ae7daffc0231884874888d8a7aeeac34c8ebe;p=thirdparty%2Fglibc.git HPPA: Initialize EPOLLONESHOT and EPOLLET correctly. The value of EPOLLONESHOT and EPOLLET should be initialized with an unsigned value. --- diff --git a/ChangeLog.hppa b/ChangeLog.hppa index 8988cf4f38e..e7a80e50d05 100644 --- a/ChangeLog.hppa +++ b/ChangeLog.hppa @@ -1,3 +1,8 @@ +2012-01-08 Carlos O'Donell + + * sysdeps/unix/sysv/linux/hppa/sys/epoll.h (EPOLLONESHOT) + (EPOLLET): Initialize with unsiged values. + 2012-01-08 Carlos O'Donell * sysdeps/unix/sysv/linux/hppa/nptl/pthread.h: Sync from libc copy. diff --git a/sysdeps/unix/sysv/linux/hppa/sys/epoll.h b/sysdeps/unix/sysv/linux/hppa/sys/epoll.h index b11a34d459f..53037d63201 100644 --- a/sysdeps/unix/sysv/linux/hppa/sys/epoll.h +++ b/sysdeps/unix/sysv/linux/hppa/sys/epoll.h @@ -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 };