summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 */