diff options
Diffstat (limited to 'converter/other/pnmtosgi.c')
-rw-r--r-- | converter/other/pnmtosgi.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/converter/other/pnmtosgi.c b/converter/other/pnmtosgi.c index cc57349f..adf89bce 100644 --- a/converter/other/pnmtosgi.c +++ b/converter/other/pnmtosgi.c @@ -225,12 +225,12 @@ buildChannels(FILE * const ifP, static void -writeHeader(unsigned int const cols, - unsigned int const rows, - xelval const maxval, - unsigned int const bpc, - unsigned int const dimensions, - unsigned int const channels, +writeHeader(unsigned int const cols, + unsigned int const rows, + xelval const maxval, + unsigned int const bpc, + unsigned int const dimensions, + unsigned int const channels, const char * const imagename) { unsigned int i; @@ -314,7 +314,7 @@ main(int argc,char * argv[]) { pm_error ("Input image is too large."); pnmrow = pnm_allocrow(cols); - + switch (PNM_FORMAT_TYPE(format)) { case PBM_TYPE: pm_message("promoting PBM to PGM"); @@ -359,3 +359,4 @@ main(int argc,char * argv[]) { } + |