소스 검색

Make use of EXIT_* macros (2)

master
Bert Münnich 14 년 전
부모
커밋
d08408e942
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. +1
    -1
      Makefile
  2. +3
    -3
      main.c

+ 1
- 1
Makefile 파일 보기

@@ -1,4 +1,4 @@
VERSION = git-20110923
VERSION = git-20110926

CC = gcc
CFLAGS = -Wall -pedantic -O2


+ 3
- 3
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)


불러오는 중...
취소
저장