From dc641499cb5f2e1812a1190d0dd69786cfcb3273 Mon Sep 17 00:00:00 2001 From: tth Date: Tue, 10 Sep 2019 15:39:33 +0200 Subject: [PATCH] clean some dirt --- tools/Makefile | 4 ++-- tools/addtga2fimg.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/Makefile b/tools/Makefile index c3f668e2..f82872ac 100644 --- a/tools/Makefile +++ b/tools/Makefile @@ -26,8 +26,8 @@ fimg2pnm: fimg2pnm.c $(DEPS) fimg2png: fimg2png.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -o $@ -# addtga2fimg: addtga2fimg.c $(DEPS) -# gcc $(COPT) $< ../libfloatimg.a -limageSO -lm -o $@ +addtga2fimg: addtga2fimg.c $(DEPS) + gcc $(COPT) $< ../libfloatimg.a -limageSO -lm -o $@ addpnm2fimg: addpnm2fimg.c $(DEPS) gcc $(COPT) $< ../libfloatimg.a -lm -o $@ diff --git a/tools/addtga2fimg.c b/tools/addtga2fimg.c index a35e781f..47abc036 100644 --- a/tools/addtga2fimg.c +++ b/tools/addtga2fimg.c @@ -67,8 +67,8 @@ if (foo) { exit(1); } -if ( 0==access(argv[2], R_OK|W_OK) ) { /* fimg is readable */ - // fprintf(stderr, "%s exist\n", argv[2]); +if ( 0==access(argv[2], R_OK) ) { /* fimg is readable */ + fprintf(stderr, "%s is ok.\n", argv[2]); } else { fprintf(stderr, "*** must create '%s' %dx%d first !!!\n",