summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile2
-rw-r--r--main.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5616326..3813ae8 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-VERSION = git-20110923
+VERSION = git-20110926
CC = gcc
CFLAGS = -Wall -pedantic -O2
diff --git a/main.c b/main.c
index 7eec9eb..ed11a9b 100644
--- a/main.c
+++ b/main.c
@@ -109,15 +109,15 @@ void check_add_file(char *filename) {
fileidx++;
}
-void remove_file(int n, bool silent) {
+void remove_file(int n, bool manual) {
if (n < 0 || n >= filecnt)
return;
if (filecnt == 1) {
- if (!silent)
+ if (!manual)
fprintf(stderr, "sxiv: no more files to display, aborting\n");
cleanup();
- exit(!silent);
+ exit(manual ? EXIT_SUCCESS : EXIT_FAILURE);
}
if (files[n].path != files[n].name)