summaryrefslogtreecommitdiff
path: root/server/nfts.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2020-03-12 12:50:15 +0000
committerIan C <ianc@noddybox.co.uk>2020-03-12 12:50:15 +0000
commitcfb86501436005e750e37240bde3f2ed1540e686 (patch)
treeccec4282c5795e553529318d84985159e1e59ce4 /server/nfts.c
parentc07f1f0db4d24382a971105e348098f127c9dd5f (diff)
Added default port.HEADmaster
Diffstat (limited to 'server/nfts.c')
-rw-r--r--server/nfts.c8
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;