diff options
Diffstat (limited to 'converter/pbm/pbmtog3.c')
-rw-r--r-- | converter/pbm/pbmtog3.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/converter/pbm/pbmtog3.c b/converter/pbm/pbmtog3.c index f034b466..ac190d22 100644 --- a/converter/pbm/pbmtog3.c +++ b/converter/pbm/pbmtog3.c @@ -57,11 +57,11 @@ parseCommandLine(int argc, const char ** const argv, optEntry * option_def; /* Instructions to OptParseOptions2 on how to parse our options. */ optStruct3 opt; + unsigned int option_def_index; + unsigned int nofixedwidth; unsigned int align8, align16; - unsigned int option_def_index; - MALLOCARRAY_NOFAIL(option_def, 100); option_def_index = 0; /* incremented by OPTENTRY */ @@ -84,7 +84,7 @@ parseCommandLine(int argc, const char ** const argv, opt.short_allowed = false; /* We have no short (old-fashioned) options */ opt.allowNegNum = true; /* We may have 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. */ free(option_def); @@ -145,7 +145,7 @@ flushBuffer(struct OutStream * const outP) { outbytes = pm_bigendFromUint32( buffer.intBuffer << (fullBuffer - buffer.bitCount)); if (outP->reverseBits) - reversebuffer((unsigned char *)&outbytes, bytesToWrite); + reversebuffer((unsigned char *)&outbytes, bytesToWrite); rc = fwrite((unsigned char *)&outbytes, 1, bytesToWrite, outP->fp); if (rc != bytesToWrite) pm_error("Output error"); @@ -153,6 +153,7 @@ flushBuffer(struct OutStream * const outP) { } + #if 1==0 static void putbitsDump(struct OutStream * const outP, |