summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorroot <root>2007-11-03 10:37:29 +0000
committerroot <root>2007-11-03 10:37:29 +0000
commite3cb88fa576a8f24145df1c6962db20c8013700f (patch)
treefbd46c96c4c00d0ce54b9d83a3ee57f1931fc5ef
parentaad25d9f3779968dc81e15e9eea4f10d78c008ff (diff)
*** empty log message ***
-rw-r--r--ev_epoll.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ev_epoll.c b/ev_epoll.c
index 4793212..d38672f 100644
--- a/ev_epoll.c
+++ b/ev_epoll.c
@@ -39,7 +39,7 @@ epoll_modify (int fd, int oev, int nev)
int mode = nev ? oev ? EPOLL_CTL_MOD : EPOLL_CTL_ADD : EPOLL_CTL_DEL;
struct epoll_event ev;
- ev.data.fd = fd;
+ ev.data.u64 = fd; /* use u64 to fully initialise the struct, for nicer strace etc. */
ev.events =
(nev & EV_READ ? EPOLLIN : 0)
| (nev & EV_WRITE ? EPOLLOUT : 0);