aboutsummaryrefslogtreecommitdiffstats
path: root/FICS/ficsmain.c
diff options
context:
space:
mode:
authorMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:37:03 +0100
committerMarkus Uhlin <markus@nifty-networks.net>2023-12-12 23:37:03 +0100
commit316172f6efdcc6cc08f3c2e87399e1153ac423af (patch)
tree17e6f77202f3c67487e92af84a368bb2457c39d6 /FICS/ficsmain.c
parent8d70cb996b7ab18b0dde802938880200a78e62b5 (diff)
Added usage of 'EXIT_SUCCESS' and 'EXIT_FAILURE'
Diffstat (limited to 'FICS/ficsmain.c')
-rw-r--r--FICS/ficsmain.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/FICS/ficsmain.c b/FICS/ficsmain.c
index 6853c13..8def15e 100644
--- a/FICS/ficsmain.c
+++ b/FICS/ficsmain.c
@@ -91,7 +91,7 @@ TerminateServer(int sig)
output_shut_mess();
TerminateCleanup();
net_close();
- exit(1);
+ exit(EXIT_FAILURE);
}
PRIVATE void
@@ -118,7 +118,7 @@ usage(char *progname)
fprintf(stderr, "\t\t-C\t\tStart with console player connected "
"to stdin.\n");
fprintf(stderr, "\t\t-h\t\tDisplay this information.\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
PUBLIC int
@@ -140,7 +140,7 @@ main(int argc, char *argv[])
if (net_init(port)) {
fprintf(stderr, "FICS: Network initialize failed on port %d.\n",
port);
- exit(1);
+ return EXIT_FAILURE;
}
startuptime = time(0);
@@ -177,5 +177,5 @@ main(int argc, char *argv[])
output_shut_mess();
net_close();
- return 0;
+ return EXIT_SUCCESS;
}