summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
authorerdgeist <>2008-12-06 20:21:15 +0000
committererdgeist <>2008-12-06 20:21:15 +0000
commitad8c9ee1efac171e5f3a8f41a630254ac88357a8 (patch)
treec605bd2f843ca4fe21342bfd9ddf231b006795d7 /opentracker.c
parent08c71627839a9134367db354c8255f7a720e1ff3 (diff)
Avoid cast warning on 64bit machines
Diffstat (limited to 'opentracker.c')
-rw-r--r--opentracker.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/opentracker.c b/opentracker.c
index d506085..022f561 100644
--- a/opentracker.c
+++ b/opentracker.c
@@ -192,9 +192,9 @@ static void server_mainloop( ) {
192 192
193 while( ( i = io_canread( ) ) != -1 ) { 193 while( ( i = io_canread( ) ) != -1 ) {
194 const void *cookie = io_getcookie( i ); 194 const void *cookie = io_getcookie( i );
195 if( (int)cookie == FLAG_TCP ) 195 if( (intptr_t)cookie == FLAG_TCP )
196 handle_accept( i ); 196 handle_accept( i );
197 else if( (int)cookie == FLAG_UDP ) 197 else if( (intptr_t)cookie == FLAG_UDP )
198 handle_udp4( i ); 198 handle_udp4( i );
199 else 199 else
200 handle_read( i ); 200 handle_read( i );