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

Charles Davis cdavis5x at gmail.com
Fri Feb 26 03:46:06 CST 2016


Signed-off-by: Charles Davis <cdavis5x at gmail.com>
---
 server/fd.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/server/fd.c b/server/fd.c
index e995380..1fd1ce7 100644
--- a/server/fd.c
+++ b/server/fd.c
@@ -574,8 +574,8 @@ static inline void set_fd_epoll_events( struct fd *fd, int user, int events )
 
     if (kqueue_fd == -1) return;
 
-    EV_SET( &ev[0], fd->unix_fd, EVFILT_READ, 0, NOTE_LOWAT, 1, (void *)user );
-    EV_SET( &ev[1], fd->unix_fd, EVFILT_WRITE, 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 *)(long)user );
 
     if (events == -1)  /* stop waiting on this fd completely */
     {
-- 
2.7.2




More information about the wine-patches mailing list