From 969c840b7a3167dd7de76edcec505383fa983e6a Mon Sep 17 00:00:00 2001 From: David Phillips Date: Sat, 30 Dec 2017 20:57:31 +1300 Subject: Fix incorrect string formats --- pgm-interlace.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pgm-interlace.c') diff --git a/pgm-interlace.c b/pgm-interlace.c index 8c95a09..b4962d3 100644 --- a/pgm-interlace.c +++ b/pgm-interlace.c @@ -36,7 +36,7 @@ * check header values are within sane limits and that they agree with the PGM * spec at: http://netpbm.sourceforge.net/doc/pgm.html */ -int check_sanity(long width, long height, long white, unsigned int clust_total) +int check_sanity(long width, long height, long white, long clust_total) { if (width <= 0 || height <= 0) { @@ -60,7 +60,7 @@ int check_sanity(long width, long height, long white, unsigned int clust_total) if (height * clust_total != width) { - fprintf(stderr, "check_sanity: %d images of %ldx%ld cannot interlace to a square image %ldx%ld\n", + fprintf(stderr, "check_sanity: %ld images of %ldx%ld cannot interlace to a square image %ldx%ld\n", clust_total, width, height, height, height); return 1; } @@ -243,7 +243,7 @@ int write_pgm(FILE *fout, unsigned long size, unsigned int white, FILE **fin, si n = fread(buffer, 1, size, fin[fnum]); if (n == 0) { - fprintf(stderr, "Unexpected EOF on file %lu at row %lu; pgm input truncated? Stop.\n", fnum, y); + fprintf(stderr, "Unexpected EOF on file %zd at row %lu; pgm input truncated? Stop.\n", fnum, y); free(buffer); return 1; } -- cgit v1.1