projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
switch from typeof to the more portable __typeof__
[project/libubox.git]
/
uloop-epoll.c
diff --git
a/uloop-epoll.c
b/uloop-epoll.c
index bb652fd3444aebc0a916cb411a915c482df02826..609ca6e77990ea1e2dbef7c38d3a2440fb06484b 100644
(file)
--- a/
uloop-epoll.c
+++ b/
uloop-epoll.c
@@
-23,7
+23,7
@@
#define EPOLLRDHUP 0x2000
#endif
#define EPOLLRDHUP 0x2000
#endif
-
int uloop_init
(void)
+
static int uloop_init_pollfd
(void)
{
if (poll_fd >= 0)
return 0;
{
if (poll_fd >= 0)
return 0;
@@
-52,7
+52,6
@@
static int register_poll(struct uloop_fd *fd, unsigned int flags)
if (flags & ULOOP_EDGE_TRIGGER)
ev.events |= EPOLLET;
if (flags & ULOOP_EDGE_TRIGGER)
ev.events |= EPOLLET;
- ev.data.fd = fd->fd;
ev.data.ptr = fd;
fd->flags = flags;
ev.data.ptr = fd;
fd->flags = flags;