diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-01-12 03:42:11 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2007-01-12 03:42:11 +0000 |
commit | 6ad7970d26356ab5cb973ec5991e74363f197cd3 (patch) | |
tree | 8bdafa91d13a03b342d995a9c61b4835055a33f9 | |
parent | 98f217dd9b7a4c6d1a93b2398ec1e16c61a97cf4 (diff) | |
download | netpbm-mirror-6ad7970d26356ab5cb973ec5991e74363f197cd3.tar.gz netpbm-mirror-6ad7970d26356ab5cb973ec5991e74363f197cd3.tar.xz netpbm-mirror-6ad7970d26356ab5cb973ec5991e74363f197cd3.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@203 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | converter/other/giftopnm.c | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/converter/other/giftopnm.c b/converter/other/giftopnm.c index d7d54775..d9b26413 100644 --- a/converter/other/giftopnm.c +++ b/converter/other/giftopnm.c @@ -1087,33 +1087,36 @@ readImageData(FILE * const ifP, static void -writePnm(FILE *outfile, xel ** const xels, - const int cols, const int rows, - const int hasGray, const int hasColor) { +writePnm(FILE * const outfileP, + xel ** const xels, + int const cols, + int const rows, + int const hasGray, + int const hasColor) { /*---------------------------------------------------------------------------- - Write a PNM image to the current position of file 'outfile' with + Write a PNM image to the current position of file *outfileP with dimensions 'cols' x 'rows' and raster 'xels'. Make it PBM, PGM, or PBM according to 'hasGray' and 'hasColor'. -----------------------------------------------------------------------------*/ int format; - const char *format_name; + const char * formatName; if (hasColor) { format = PPM_FORMAT; - format_name = "PPM"; + formatName = "PPM"; } else if (hasGray) { format = PGM_FORMAT; - format_name = "PGM"; + formatName = "PGM"; } else { format = PBM_FORMAT; - format_name = "PBM"; + formatName = "PBM"; } if (verbose) - pm_message("writing a %s file", format_name); + pm_message("writing a %s file", formatName); - if (outfile) - pnm_writepnm(outfile, xels, cols, rows, + if (outfileP) + pnm_writepnm(outfileP, xels, cols, rows, (xelval) GIFMAXVAL, format, FALSE); } |