diff options
-rw-r--r-- | editor/pammasksharpen.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/pammasksharpen.c b/editor/pammasksharpen.c index e61237ca..f08e130c 100644 --- a/editor/pammasksharpen.c +++ b/editor/pammasksharpen.c @@ -17,7 +17,7 @@ struct cmdlineInfo { static void -parseCommandLine(int argc, char ** const argv, +parseCommandLine(int argc, const char ** const argv, struct cmdlineInfo * const cmdlineP) { /*---------------------------------------------------------------------------- Note that the file spec array we return is stored in the storage that @@ -46,7 +46,7 @@ parseCommandLine(int argc, char ** const argv, opt.short_allowed = FALSE; /* We have no short (old-fashioned) options */ opt.allowNegNum = FALSE; /* We have no parms that are negative numbers */ - optParseOptions3(&argc, argv, opt, sizeof(opt), 0); + optParseOptions3(&argc, (char **)argv, opt, sizeof(opt), 0); /* Uses and sets argc, argv, and some of *cmdlineP and others. */ if (sharpSpec) { @@ -109,7 +109,7 @@ sharpened(sample const inputSample, int -main(int argc, char *argv[]) { +main(int argc, const char * *argv) { struct cmdlineInfo cmdline; struct pam inpam; @@ -126,8 +126,8 @@ main(int argc, char *argv[]) { which they will be considered identical. */ - pnm_init(&argc, argv); - + pm_proginit(&argc, argv); + parseCommandLine(argc, argv, &cmdline); ifP = pm_openr(cmdline.inputFilespec); |