summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-07-29 02:33:32 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-07-29 02:33:32 (EDT)
commit213de815be275663aec88d527a17f0e48b23ae1d (patch)
treed144b7c90c1f18c1d87a4cbbe37d25eff7f6e755
parentd73591bd0c702502049e13347e3c98d0846f0b10 (diff)
main(): Use EXIT_FAILURE instead of 1
-rw-r--r--src/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 51323f3..e1a7493 100644
--- a/src/main.c
+++ b/src/main.c
@@ -20,6 +20,7 @@
*/
#include <stdio.h>
+#include <stdlib.h>
#include <string.h>
#include "commands.h"
@@ -35,7 +36,7 @@ main(int argc, char **argv)
{
if (argc < 2 || strcmp(argv[1], "s_client") != 0) {
usage(stderr, argv[0]);
- return 1;
+ return EXIT_FAILURE;
}
return s_client(argc - 2, argv + 2);