diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-05-03 05:21:12 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2016-05-03 05:21:12 +0000 |
commit | 2c11ab9d3453d471594a0b379e4c2b3ea2b441d3 (patch) | |
tree | 151a48f3caf0adeefa41e7f4864a07d15a3a7374 | |
parent | ddb13005eba52260e3d6d5827b1e6a473a2168fe (diff) | |
download | netpbm-mirror-2c11ab9d3453d471594a0b379e4c2b3ea2b441d3.tar.gz netpbm-mirror-2c11ab9d3453d471594a0b379e4c2b3ea2b441d3.tar.xz netpbm-mirror-2c11ab9d3453d471594a0b379e4c2b3ea2b441d3.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2744 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/rletopnm.c | 12 |
1 files changed, 6 insertions, 6 deletions
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; |