summaryrefslogtreecommitdiff
path: root/opentracker.c
diff options
context:
space:
mode:
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 );