mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
5c65910dd8
client_net.cpp:34:12: error: ordered comparison between pointer and zero ('SDL_cond *' and 'int') if (cond <0) ~~~~ ^~ client_net.cpp:40:13: error: ordered comparison between pointer and zero ('SDL_mutex *' and 'int') if (mutex < 0) ~~~~~ ^ ~ client_net.cpp:48:16: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (trans_th < 0) ~~~~~~~~ ^ ~ client_net.cpp:54:16: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (input_th < 0) ~~~~~~~~ ^ ~ game_server.cpp:67:14: error: ordered comparison between pointer and zero ('SDL_Thread *' and 'int') if (con_th < 0) ~~~~~~ ^ ~ Reported by: antoine (via exp-run)
12 lines
394 B
C++
12 lines
394 B
C++
--- game_server.cpp.orig 2005-05-30 10:25:51 UTC
|
|
+++ game_server.cpp
|
|
@@ -64,7 +64,7 @@ void game_server::init_net()
|
|
|
|
// OK, init server thread to listen to clients
|
|
con_th = SDL_CreateThread (&game_server::connection_accepter, (void *) this);
|
|
- if (con_th < 0)
|
|
+ if (con_th == NULL)
|
|
{
|
|
fprintf (stderr, "[SRV] Error starting thread: %s\n", SDL_GetError());
|
|
exit(2);
|