Browse Source

more cleanup

master
tth 1 year ago
parent
commit
e410b64514
  1. 2
      Fonderie/metriques.c
  2. 9
      Fonderie/singlepass.c

2
Fonderie/metriques.c

@ -51,7 +51,7 @@ float means[4]; /* four values : R G B A */ @@ -51,7 +51,7 @@ float means[4]; /* four values : R G B A */
int foo;
#if DEBUG_LEVEL
fprintf(stderr, ">>> %s ( %p %f %d )\n", __func__, pimg, where, whot);
fprintf(stderr, ">>> %s ( %p %p )\n", __func__, pimg, where);
#endif
foo = fimg_meanvalues(pimg, means);

9
Fonderie/singlepass.c

@ -71,7 +71,7 @@ if (0 == globbuf.gl_pathc) { @@ -71,7 +71,7 @@ if (0 == globbuf.gl_pathc) {
for (idx=0; idx<globbuf.gl_pathc; idx++) {
fname = globbuf.gl_pathv[idx]; /* alias of filename */
fprintf(stderr, " %6d %s\r", globbuf.gl_pathc-idx, fname);
fprintf(stderr, " %6ld %s\r", (long)globbuf.gl_pathc-idx, fname);
if (0==image.width && 0==image.height) {
foo = fimg_create_from_dump(fname, &image);
@ -104,9 +104,9 @@ fimg_destroy(&image); @@ -104,9 +104,9 @@ fimg_destroy(&image);
single_print_state("end of run :)", 0);
elapsed = fimg_timer_get(0);
fprintf(stderr, "%s: %d frames, elapsed %.3f s, %.3f fps\n",
fprintf(stderr, "%s: %ld frames, elapsed %.3f s, %.3f fps\n",
__func__,
globbuf.gl_pathc, elapsed,
(long)globbuf.gl_pathc, elapsed,
(double)globbuf.gl_pathc/elapsed);
return 0;
@ -156,6 +156,9 @@ while ((opt = getopt(argc, argv, "hF:g:LO:svx")) != -1) { @@ -156,6 +156,9 @@ while ((opt = getopt(argc, argv, "hF:g:LO:svx")) != -1) {
case 'x': do_xper = 1; break;
default:
fprintf(stderr, "%s ABEND\n", argv[0]);
exit(1);
}
}

Loading…
Cancel
Save