diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-10-05 16:59:36 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2024-10-05 16:59:36 +0000 |
commit | 3958053e9ed5a7d9938079b5784417052699fe00 (patch) | |
tree | fe0816cd94a96d1711bbd85b9532194dacf2a1d7 | |
parent | 305f79213497b4503248503fec863957429baaf1 (diff) | |
download | netpbm-mirror-3958053e9ed5a7d9938079b5784417052699fe00.tar.gz netpbm-mirror-3958053e9ed5a7d9938079b5784417052699fe00.tar.xz netpbm-mirror-3958053e9ed5a7d9938079b5784417052699fe00.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4959 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | generator/ppmmake.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/generator/ppmmake.c b/generator/ppmmake.c index b1de7b52..545f5eda 100644 --- a/generator/ppmmake.c +++ b/generator/ppmmake.c @@ -15,7 +15,7 @@ #include "shhopt.h" #include "ppm.h" -struct cmdlineInfo { +struct CmdlineInfo { /* All the information the user supplied in the command line, in a form easy for the program to use. */ @@ -28,11 +28,11 @@ struct cmdlineInfo { static void -parseCommandLine(int argc, char ** argv, - struct cmdlineInfo * const cmdlineP) { +parseCommandLine(int argc, const char ** argv, + struct CmdlineInfo * const cmdlineP) { /*---------------------------------------------------------------------------- Convert program invocation arguments (argc,argv) into a format the - program can use easily, struct cmdlineInfo. Validate arguments along + program can use easily, struct CmdlineInfo. Validate arguments along the way and exit program with message if invalid. Note that some string information we return as *cmdlineP is in the storage @@ -55,7 +55,7 @@ parseCommandLine(int argc, char ** argv, 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, 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); @@ -86,13 +86,13 @@ parseCommandLine(int argc, char ** argv, int -main(int argc, char *argv[]) { +main(int argc, const char ** argv) { - struct cmdlineInfo cmdline; + struct CmdlineInfo cmdline; pixel * pixrow; unsigned int row, col; - ppm_init(&argc, argv); + pm_proginit(&argc, argv); parseCommandLine(argc, argv, &cmdline); |