From d08408e94250425e677e1ab33d917e05e229faa2 Mon Sep 17 00:00:00 2001 From: Bert Münnich Date: Mon, 26 Sep 2011 21:28:27 +0200 Subject: Make use of EXIT_* macros (2) --- main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.c') 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) -- cgit v1.2.3-54-g00ecf