Browse Source

clean some dirt

master
tth 3 years ago
parent
commit
dc641499cb
  1. 4
      tools/Makefile
  2. 4
      tools/addtga2fimg.c

4
tools/Makefile

@ -26,8 +26,8 @@ fimg2pnm: fimg2pnm.c $(DEPS) @@ -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 $@

4
tools/addtga2fimg.c

@ -67,8 +67,8 @@ if (foo) { @@ -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",

Loading…
Cancel
Save