From ad8ae7daffc0231884874888d8a7aeeac34c8ebe Mon Sep 17 00:00:00 2001 From: Carlos O'Donell Date: Mon, 9 Jan 2012 00:47:04 -0500 Subject: [PATCH] HPPA: Initialize EPOLLONESHOT and EPOLLET correctly. The value of EPOLLONESHOT and EPOLLET should be initialized with an unsigned value. --- ChangeLog.hppa | 5 +++++ sysdeps/unix/sysv/linux/hppa/sys/epoll.h | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog.hppa b/ChangeLog.hppa index 8988cf4..e7a80e5 100644 --- a/ChangeLog.hppa +++ b/ChangeLog.hppa @@ -1,5 +1,10 @@ 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. 2012-01-08 Carlos O'Donell diff --git a/sysdeps/unix/sysv/linux/hppa/sys/epoll.h b/sysdeps/unix/sysv/linux/hppa/sys/epoll.h index b11a34d..53037d6 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 }; -- 2.7.4