From c4a94766addc3e775ea5de714f8185de3ff28d1b Mon Sep 17 00:00:00 2001 From: giraffedata Date: Mon, 11 Aug 2014 02:44:17 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2239 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/ppm/ppmtopict.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'converter/ppm') diff --git a/converter/ppm/ppmtopict.c b/converter/ppm/ppmtopict.c index 68b7fd92..59e64137 100644 --- a/converter/ppm/ppmtopict.c +++ b/converter/ppm/ppmtopict.c @@ -194,7 +194,7 @@ putRect(FILE * const ifP, #define counttochar(c) ((c)-1) static int -putRow(FILE * const ifP, +putRow(FILE * const ifP, unsigned int const row, unsigned int const cols, pixel * const rowpixels, @@ -442,7 +442,7 @@ main(int argc, const char ** argv) { /* Finally, write out the data. */ packed = malloc((unsigned)(cols+cols/MAX_COUNT+1)); - for (row = 0, oc = 0; row < rows; row++) + for (row = 0, oc = 0; row < rows; ++row) oc += putRow(stdout, row, cols, pixels[row], packed); /* if we wrote an odd number of pixdata bytes, pad */ @@ -457,3 +457,5 @@ main(int argc, const char ** argv) { return 0; } + + -- cgit 1.4.1