HPPA: Initialize EPOLLONESHOT and EPOLLET correctly.

The value of EPOLLONESHOT and EPOLLET should be
initialized with an unsigned value.
This commit is contained in:
Carlos O'Donell 2012-01-09 00:47:04 -05:00
parent c27dd89f4b
commit ad8ae7daff
2 changed files with 7 additions and 2 deletions

View 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.

View 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
};