diff options
author | jozan <jozan@noemail.net> | 2020-11-27 21:58:23 +0000 |
---|---|---|
committer | jozan <jozan@noemail.net> | 2020-11-27 21:58:23 +0000 |
commit | 9f93facf36146013a40040ad910d9e467b3f1681 (patch) | |
tree | 425465e1c9d01e512a223d875a81ac278dd65e6e /src | |
parent | Added install and uninstall rules (diff) | |
download | unixize-9f93facf36146013a40040ad910d9e467b3f1681.tar.gz unixize-9f93facf36146013a40040ad910d9e467b3f1681.tar.bz2 unixize-9f93facf36146013a40040ad910d9e467b3f1681.tar.xz unixize-9f93facf36146013a40040ad910d9e467b3f1681.tar.zst unixize-9f93facf36146013a40040ad910d9e467b3f1681.zip |
Completed man page
FossilOrigin-Name: a94793605a8a1faef6be0c11bdad80c3c915644aa4d442fcac4ba37d7f62baee
Diffstat (limited to '')
-rw-r--r-- | src/c_opts.c | 8 | ||||
-rw-r--r-- | src/c_unixize.c | 7 |
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; |