diff options
author | Ian C <ianc@noddybox.co.uk> | 2020-03-12 12:50:15 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2020-03-12 12:50:15 +0000 |
commit | cfb86501436005e750e37240bde3f2ed1540e686 (patch) | |
tree | ccec4282c5795e553529318d84985159e1e59ce4 /server/nfts.c | |
parent | c07f1f0db4d24382a971105e348098f127c9dd5f (diff) |
Diffstat (limited to 'server/nfts.c')
-rw-r--r-- | server/nfts.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/server/nfts.c b/server/nfts.c index afc3994..491b668 100644 --- a/server/nfts.c +++ b/server/nfts.c @@ -518,11 +518,13 @@ int main(int argc, char *argv[]) if (argc<2) { - fprintf(stderr, "%s: usage %s port\n", name, name); - exit(EXIT_FAILURE); + port = 16514; + } + else + { + port = atoi(argv[1]); } - port = atoi(argv[1]); sock = Socket(port); quit = 0; |