projects
/
oweals
/
libubox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9db1cb
)
uloop: remove useless epoll data assignment
author
Felix Fietkau
<nbd@nbd.name>
Mon, 12 Dec 2016 11:24:13 +0000
(12:24 +0100)
committer
Felix Fietkau
<nbd@nbd.name>
Mon, 12 Dec 2016 11:24:14 +0000
(12:24 +0100)
ev.data is a union, so setting ev.data.fd is lost after setting
ev.data.ptr
Reported-by: Song Yaofei <songyaofei@joyware.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
uloop-epoll.c
patch
|
blob
|
history
diff --git
a/uloop-epoll.c
b/uloop-epoll.c
index 6014bea8cc51e93c236d8ddc1b3c0e83aa94384a..609ca6e77990ea1e2dbef7c38d3a2440fb06484b 100644
(file)
--- a/
uloop-epoll.c
+++ b/
uloop-epoll.c
@@
-52,7
+52,6
@@
static int register_poll(struct uloop_fd *fd, unsigned int flags)
if (flags & ULOOP_EDGE_TRIGGER)
ev.events |= EPOLLET;
- ev.data.fd = fd->fd;
ev.data.ptr = fd;
fd->flags = flags;