diff options
author | Bert Münnich <ber.t@gmx.com> | 2011-09-26 21:28:27 +0200 |
---|---|---|
committer | Bert Münnich <ber.t@gmx.com> | 2011-09-26 21:28:27 +0200 |
commit | d08408e94250425e677e1ab33d917e05e229faa2 (patch) | |
tree | 2d8ca1ac2ea2d1f16515f98b375862b3ad6d33e4 /main.c | |
parent | 9e52ae768e628ffbefabd6f7445d47d10c0aced9 (diff) | |
download | nsxiv-d08408e94250425e677e1ab33d917e05e229faa2.tar.zst |
Make use of EXIT_* macros (2)
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |