From 28a0007be711c18b4949689026845b46025aa566 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 21 Aug 2019 14:49:16 +0200 Subject: Fix usage of EXIT_* constants in sqfsdiff Signed-off-by: David Oberhollenzer --- difftool/options.c | 6 +++--- difftool/sqfsdiff.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'difftool') diff --git a/difftool/options.c b/difftool/options.c index 149f736..c0c1ca6 100644 --- a/difftool/options.c +++ b/difftool/options.c @@ -100,10 +100,10 @@ void process_options(sqfsdiff_t *sd, int argc, char **argv) break; case 'h': fputs(usagestr, stdout); - exit(EXIT_SUCCESS); + exit(0); case 'V': print_version(); - exit(EXIT_SUCCESS); + exit(0); default: goto fail_arg; } @@ -126,5 +126,5 @@ void process_options(sqfsdiff_t *sd, int argc, char **argv) return; fail_arg: fprintf(stderr, "Try `sqfsdiff --help' for more information.\n"); - exit(EXIT_FAILURE); + exit(2); } diff --git a/difftool/sqfsdiff.c b/difftool/sqfsdiff.c index 601ffba..28f86bd 100644 --- a/difftool/sqfsdiff.c +++ b/difftool/sqfsdiff.c @@ -16,7 +16,7 @@ int main(int argc, char **argv) if (sd.extract_dir != NULL) { if (mkdir_p(sd.extract_dir)) - return EXIT_FAILURE; + return 2; } /* open first source */ -- cgit v1.2.3