ecore pipe - fix cast warning by casting (validly)

This commit is contained in:
Carsten Haitzler 2017-04-17 17:01:58 +09:00
parent 8f0402e2fb
commit 2055a876c4
1 changed files with 2 additions and 2 deletions

View File

@ -370,11 +370,11 @@ ecore_pipe_full_add(Ecore_Pipe_Cb handler,
p->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK | TFD_CLOEXEC);
_ecore_fd_close_on_exec(p->pollfd);
pollev.data.ptr = p->fd_read;
pollev.data.ptr = (void *)(uintptr_t)(p->fd_read);
pollev.events = EPOLLIN;
epoll_ctl(p->pollfd, EPOLL_CTL_ADD, p->fd_read, &pollev);
pollev.data.ptr = p->timerfd;
pollev.data.ptr = (void *)(uintptr_t)(p->timerfd);
pollev.events = EPOLLIN;
epoll_ctl(p->pollfd, EPOLL_CTL_ADD, p->timerfd, &pollev);
#endif