summaryrefslogtreecommitdiffstats
path: root/main.c
diff options
context:
space:
mode:
authorrck <dev.rck@gmail.com>2011-09-26 15:40:07 +0200
committerrck <dev.rck@gmail.com>2011-09-26 15:40:07 +0200
commit3a81af41ac3ebdcfa13f70cca0408b2d7acfff3f (patch)
treee3222555c9d7af07c78c2d79b9e1009a525e9f92 /main.c
parent515e41045198074cc1b015c6296f536edbfedff5 (diff)
downloadnsxiv-3a81af41ac3ebdcfa13f70cca0408b2d7acfff3f.tar.zst
make use of EXIT_ macros
Diffstat (limited to 'main.c')
-rw-r--r--main.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/main.c b/main.c
index 26f9f65..7eec9eb 100644
--- a/main.c
+++ b/main.c
@@ -471,12 +471,12 @@ int main(int argc, char **argv) {
if (options->clean_cache) {
tns_init(&tns, 0, NULL);
tns_clean_cache(&tns);
- exit(0);
+ exit(EXIT_SUCCESS);
}
if (!options->filecnt) {
print_usage();
- exit(1);
+ exit(EXIT_FAILURE);
}
if (options->recursive || options->from_stdin)
@@ -526,7 +526,7 @@ int main(int argc, char **argv) {
if (!fileidx) {
fprintf(stderr, "sxiv: no valid image file given, aborting\n");
- exit(1);
+ exit(EXIT_FAILURE);
}
filecnt = fileidx;