From: Martin Mares Date: Sun, 4 Nov 2018 14:00:39 +0000 (+0100) Subject: Fixup for the previous commit X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=463a01eaf1ca7d8619b11f4db782bdc408ad7227;p=nwho.git Fixup for the previous commit --- diff --git a/nwhod.c b/nwhod.c index 480fd00..9407f6f 100644 --- a/nwhod.c +++ b/nwhod.c @@ -382,8 +382,13 @@ main(int argc, char **argv) usage(); } - if (optind == argc-1 && argv[optind][0]) - client(argv[optind]); + if (optind == argc-1) + { + if (argv[optind][0]) + client(argv[optind]); + else + server(); + } else if (optind == argc) server(); else