--- a/src/client.c Tue Aug 28 14:03:09 2018 +0200 +++ b/src/client.c Tue Aug 28 14:16:30 2018 +0200 @@ -65,12 +65,12 @@ if (client_connect(&server, settings->serverhost, settings->port)) { net_destroy(&server); - return EXIT_FAILURE; + return 1; } if (client_handshake(&server)) { net_destroy(&server); - return EXIT_FAILURE; + return 1; } uint8_t code = net_recieve_code(server.fd); @@ -109,9 +109,9 @@ } else { addstr("Server sent invalid gameinfo."); net_destroy(&server); - return EXIT_FAILURE; + return 1; } net_destroy(&server); - return EXIT_SUCCESS; + return 0; }