From ad8c9ee1efac171e5f3a8f41a630254ac88357a8 Mon Sep 17 00:00:00 2001 From: erdgeist <> Date: Sat, 6 Dec 2008 20:21:15 +0000 Subject: Avoid cast warning on 64bit machines --- opentracker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'opentracker.c') 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( ) { while( ( i = io_canread( ) ) != -1 ) { const void *cookie = io_getcookie( i ); - if( (int)cookie == FLAG_TCP ) + if( (intptr_t)cookie == FLAG_TCP ) handle_accept( i ); - else if( (int)cookie == FLAG_UDP ) + else if( (intptr_t)cookie == FLAG_UDP ) handle_udp4( i ); else handle_read( i ); -- cgit v1.2.3