diff options
Diffstat (limited to 'src/engine/server.cpp')
| -rw-r--r-- | src/engine/server.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/engine/server.cpp b/src/engine/server.cpp index c23e4fa..10c1e80 100644 --- a/src/engine/server.cpp +++ b/src/engine/server.cpp @@ -39,6 +39,7 @@ void fatal(const char *fmt, ...) { } void conoutfv(int type, const char *fmt, va_list args) { + (void) type; logoutfv(fmt, args); } #endif @@ -263,7 +264,7 @@ bool resolverwait(const char *name, ENetAddress *address) { return enet_address_set_host(address, name) >= 0; } -int connectwithtimeout(ENetSocket sock, const char *hostname, const ENetAddress &remoteaddress) { +int connectwithtimeout(ENetSocket sock, const ENetAddress &remoteaddress) { return enet_socket_connect(sock, &remoteaddress); } #endif @@ -307,7 +308,7 @@ ENetSocket connectmaster(bool wait) { if(wait || serveraddress.host == ENET_HOST_ANY || !enet_socket_bind(sock, &serveraddress)) { enet_socket_set_option(sock, ENET_SOCKOPT_NONBLOCK, 1); if(wait) { - if(!connectwithtimeout(sock, mastername, masteraddress)) return sock; + if(!connectwithtimeout(sock, masteraddress)) return sock; } else if(!enet_socket_connect(sock, &masteraddress)) return sock; } @@ -662,7 +663,7 @@ COMMAND(stoplistenserver, ""); #endif #ifdef STANDALONE -int main(int argc, char **argv) { +int main(void) { if(enet_initialize()<0) fatal("Unable to initialise network module"); atexit(enet_deinitialize); enet_time_set(0); |
