mirror of
git://erdgeist.org/opentracker
synced 2025-04-22 13:52:00 +02:00
Avoid cast warning on 64bit machines
This commit is contained in:
parent
08c7162783
commit
ad8c9ee1ef
1 changed files with 2 additions and 2 deletions
|
@ -192,9 +192,9 @@ static void server_mainloop( ) {
|
||||||
|
|
||||||
while( ( i = io_canread( ) ) != -1 ) {
|
while( ( i = io_canread( ) ) != -1 ) {
|
||||||
const void *cookie = io_getcookie( i );
|
const void *cookie = io_getcookie( i );
|
||||||
if( (int)cookie == FLAG_TCP )
|
if( (intptr_t)cookie == FLAG_TCP )
|
||||||
handle_accept( i );
|
handle_accept( i );
|
||||||
else if( (int)cookie == FLAG_UDP )
|
else if( (intptr_t)cookie == FLAG_UDP )
|
||||||
handle_udp4( i );
|
handle_udp4( i );
|
||||||
else
|
else
|
||||||
handle_read( i );
|
handle_read( i );
|
||||||
|
|
Loading…
Add table
Reference in a new issue