aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_opts.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_opts.c')
-rw-r--r--src/c_opts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_opts.c b/src/c_opts.c
index 996643e..1664523 100644
--- a/src/c_opts.c
+++ b/src/c_opts.c
@@ -160,7 +160,7 @@ c_get_opts
}
else if (opt == 'h') {
c_dump_usage();
- exit(0);
+ exit(EXIT_SUCCESS);
}
else if (opt == 'i') {
opts->confirm = TRUE;
@@ -190,7 +190,7 @@ c_get_opts
C_C_OPT_FMT,
optarg
);
- exit(1);
+ exit(EXIT_FAILURE);
}
else {
opts->cxx = optarg[0] - 48;
@@ -198,7 +198,7 @@ c_get_opts
}
else if (opt == '?') {
c_dump_usage();
- exit(1);
+ exit(EXIT_FAILURE);
}
}
if (
@@ -206,7 +206,7 @@ c_get_opts
argv[optind] == NULL
) {
c_dump_usage();
- exit(1);
+ exit(EXIT_FAILURE);
}
if (
argv[0][0] != C_RECURSIVE_CHAR &&