src/client.c

changeset 59
3fa1de896666
parent 55
54ea19938d57
child 64
4eda5df55f86
--- 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;
 }

mercurial