server: Fix int-to-pointer conversion warning (Clang).

Signed-off-by: Charles Davis <cdavis5x@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Charles Davis 2016-02-26 02:46:06 -07:00 committed by Alexandre Julliard
parent aa5762d5c2
commit 1c862ca479
1 changed files with 2 additions and 2 deletions

View File

@ -574,8 +574,8 @@ static inline void set_fd_epoll_events( struct fd *fd, int user, int events )
if (kqueue_fd == -1) return; if (kqueue_fd == -1) return;
EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, (void *)user ); EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, (void *)(long)user );
EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 0, NOTE_LOWAT, 1, (void *)user ); EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 0, NOTE_LOWAT, 1, (void *)(long)user );
if (events == -1) /* stop waiting on this fd completely */ if (events == -1) /* stop waiting on this fd completely */
{ {