aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-21 14:49:16 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-21 15:22:01 +0200
commit28a0007be711c18b4949689026845b46025aa566 (patch)
tree0688686d4393b6081096c3d7eab53ea3f49b923c
parent66e59bc2f10e35fbbbbaa7c4abff8a27148f00e4 (diff)
Fix usage of EXIT_* constants in sqfsdiff
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
-rw-r--r--difftool/options.c6
-rw-r--r--difftool/sqfsdiff.c2
2 files changed, 4 insertions, 4 deletions
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 */