[mw-devel] MW3 r1294 - trunk/src/server

welshbyte at sucs.org welshbyte at sucs.org
Sun Nov 18 17:27:25 GMT 2012


Author: welshbyte
Date: 2012-11-18 17:27:24 +0000 (Sun, 18 Nov 2012)
New Revision: 1294

Modified:
   trunk/src/server/mwserv.c
Log:
Actually exit from the server when we get --help


Modified: trunk/src/server/mwserv.c
===================================================================
--- trunk/src/server/mwserv.c	2012-11-18 17:12:08 UTC (rev 1293)
+++ trunk/src/server/mwserv.c	2012-11-18 17:27:24 UTC (rev 1294)
@@ -85,12 +85,11 @@
 	int mainsock = -1;
 	int err = getopts(argc, argv, &opts);
 
-	if (err || opts.help)
+	if (err || opts.help) {
 		usage(argv[0]);
+		return err;
+	}
 
-	if (err)
-		return 1;
-
 	init_server();
 
 	mainsock = open_mainsock(opts.port);




More information about the mw-devel mailing list