aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/c_opts.c8
-rw-r--r--src/c_unixize.c7
2 files changed, 8 insertions, 7 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 &&
diff --git a/src/c_unixize.c b/src/c_unixize.c
index f6b7b87..b3fb265 100644
--- a/src/c_unixize.c
+++ b/src/c_unixize.c
@@ -52,6 +52,7 @@
#include <locale.h>
#include <stdio.h>
#include <stddef.h>
+#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -80,7 +81,7 @@ main
static char path[MAXPATHLEN] = "";
if (c_get_opts(&opts, argc, argv) == FALSE) {
- return (0);
+ return (EXIT_SUCCESS);
}
if (
argv[0][0] != 'r'
@@ -91,7 +92,7 @@ main
}
og_files = c_lfiles_gather(path);
if (og_files == NULL) {
- return (0);
+ return (EXIT_SUCCESS);
}
new_files = c_subst_filenames(
og_files,
@@ -101,7 +102,7 @@ main
);
if (new_files == NULL) {
c_lfiles_clear(&og_files);
- return (1);
+ return (EXIT_FAILURE);
}
og_files_head = og_files;
new_files_head = new_files;