Warning cleanup when assigning NULL to udata field of struct kevent,
authorMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 13 Jan 2005 06:31:27 +0000 (06:31 +0000)
committerMatthew Mondor <mmondor@pulsar-zone.net>
Thu, 13 Jan 2005 06:31:27 +0000 (06:31 +0000)
a cast to intptr_t was required

src/socketengine_kqueue.c

index f22ffe7..4eca172 100644 (file)
@@ -6,7 +6,7 @@
  *
  */
 
-/* $Id: socketengine_kqueue.c,v 1.1 2005/01/12 07:44:57 mmondor Exp $ */
+/* $Id: socketengine_kqueue.c,v 1.2 2005/01/13 06:31:27 mmondor Exp $ */
 
 #include "struct.h"
 #include "common.h"
@@ -58,7 +58,7 @@ engine_add_fd(int fd)
     e.flags = EV_ADD|EV_DISABLE;
     e.fflags = 0;
     e.data = 0;
-    e.udata = NULL;
+    e.udata = (intptr_t)NULL;
     kevent_add(&e);
 
     e.ident = fd;
@@ -66,7 +66,7 @@ engine_add_fd(int fd)
     e.flags = EV_ADD|EV_DISABLE;
     e.fflags = 0;
     e.data = 0;
-    e.udata = NULL;
+    e.udata = (intptr_t)NULL;
     kevent_add(&e);
 
     set_fd_internal(fd, 0);