diff options
Diffstat (limited to 'converter/pgm/sbigtopgm.c')
-rw-r--r-- | converter/pgm/sbigtopgm.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/converter/pgm/sbigtopgm.c b/converter/pgm/sbigtopgm.c index 7833cb62..c56d5eae 100644 --- a/converter/pgm/sbigtopgm.c +++ b/converter/pgm/sbigtopgm.c @@ -46,21 +46,19 @@ parseCommandLine(int argc, const char ** argv, was passed to as as the argv array. -----------------------------------------------------------------------------*/ optEntry * option_def; - /* Instructions to pm_optParseOptions3 on how to parse our options. - */ optStruct3 opt; unsigned int option_def_index; MALLOCARRAY_NOFAIL(option_def, 100); - + OPTENTINIT; opt.opt_table = option_def; opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */ opt.allowNegNum = FALSE; /* We have no parms that are negative numbers */ - - pm_optParseOptions3(&argc, (char **)argv, opt, sizeof(opt), 0); + + pm_optParseOptions4(&argc, argv, opt, sizeof(opt), 0); /* Uses and sets argc, argv, and some of *cmdlineP and others */ if (argc-1 < 1) @@ -208,7 +206,7 @@ readSbigHeader(FILE * const ifP, *ep = ' '; } } - + looseCanon(cursor); /* Convert from standard SBIG to an internal format */ @@ -270,7 +268,7 @@ writeRaster(FILE * const ifP, unsigned short rowlen; /* Compressed row length */ pm_readlittleshortu(ifP, &rowlen); - + /* If compression results in a row length >= the uncompressed row length, that row is output uncompressed. We detect this by observing that the compressed row length is equal to |