From aab4792db8e0adcaf63cf57a1f5e0b18666dae47 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sun, 26 Jun 2016 18:15:09 +0000 Subject: Promote Development to Advanced as Release 10.75.00 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2803 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/rletopnm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'converter/other/rletopnm.c') diff --git a/converter/other/rletopnm.c b/converter/other/rletopnm.c index 99959141..ff37cfe4 100644 --- a/converter/other/rletopnm.c +++ b/converter/other/rletopnm.c @@ -264,7 +264,8 @@ writePpmRaster(FILE * const imageoutFileP, pixel *pixelrow; gray *alpharow; - int scan, x, y; + int scan; + int x; /* * Allocate some stuff. */ @@ -280,9 +281,9 @@ writePpmRaster(FILE * const imageoutFileP, /* * Loop through those scan lines. */ - for (scan = 0; scan < height; scan++) - y = rle_getrow(&hdr, scanlines[height - scan - 1]); - for (scan = 0; scan < height; scan++) { + for (scan = 0; scan < height; ++scan) + rle_getrow(&hdr, scanlines[height - scan - 1]); + for (scan = 0; scan < height; ++scan) { scanline = scanlines[scan]; switch (visual) { case GRAYSCALE: /* 8 bits without colormap */ @@ -366,7 +367,6 @@ writePgmRaster(FILE * const imageoutFileP, gray * pixelrow; gray * alpharow; int scan; - int y; /* * Allocate some stuff. */ @@ -383,7 +383,7 @@ writePgmRaster(FILE * const imageoutFileP, * Loop through those scan lines. */ for (scan = 0; scan < height; ++scan) - y = rle_getrow(&hdr, scanlines[height - scan - 1]); + rle_getrow(&hdr, scanlines[height - scan - 1]); for (scan = 0; scan < height; ++scan) { int x; -- cgit 1.4.1