--- ray/src/cv/robjutil.c 2021/03/12 18:32:33 2.4 +++ ray/src/cv/robjutil.c 2024/09/09 00:54:30 2.6 @@ -1,5 +1,5 @@ #ifndef lint -static const char RCSid[] = "$Id: robjutil.c,v 2.4 2021/03/12 18:32:33 greg Exp $"; +static const char RCSid[] = "$Id: robjutil.c,v 2.6 2024/09/09 00:54:30 greg Exp $"; #endif /* * Utility program for fixing up Wavefront .OBJ files. @@ -185,11 +185,12 @@ main(int argc, char *argv[]) } if (verbose) fputs("Checking for duplicate faces...\n", stderr); - if (findDuplicateFaces(myScene)) + if (findDuplicateFaces(myScene)) { n = deleteFaces(myScene, FACE_DUPLICATE, 0); - if (n) { - sprintf(cbuf, "Removed %d duplicate faces", n); - addComment(myScene, cbuf); + if (n) { + sprintf(cbuf, "Removed %d duplicate faces", n); + addComment(myScene, cbuf); + } } if (do_triangulate) { if (verbose) @@ -237,7 +238,7 @@ userr: } void -eputs(char *s) /* put string to stderr */ +eputs(const char *s) /* put string to stderr */ { static int midline = 0;