Repositories
/
rubiks-ircd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a90c27b
)
Warning cleanup when assigning NULL to udata field of struct kevent,
author
Matthew Mondor
<mmondor@pulsar-zone.net>
Thu, 13 Jan 2005 06:31:27 +0000
(06:31 +0000)
committer
Matthew 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
patch
|
blob
|
blame
|
history
diff --git
a/src/socketengine_kqueue.c
b/src/socketengine_kqueue.c
index
f22ffe7
..
4eca172
100644
(file)
--- a/
src/socketengine_kqueue.c
+++ b/
src/socketengine_kqueue.c
@@
-6,7
+6,7
@@
*
*/
-/* $Id: socketengine_kqueue.c,v 1.
1 2005/01/12 07:44:5
7 mmondor Exp $ */
+/* $Id: socketengine_kqueue.c,v 1.
2 2005/01/13 06:31:2
7 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);