diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-04-30 18:56:28 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2022-04-30 18:56:28 +0000 |
commit | e5283cbeddb6cdc26305d885f26461a631aed7e8 (patch) | |
tree | 82eeab1c6b098c10d0c3fed0f4cebe27607a249f /generator | |
parent | 4e65cdb973f267ad98c2972c8871acb0a9e5c368 (diff) | |
download | netpbm-mirror-e5283cbeddb6cdc26305d885f26461a631aed7e8.tar.gz netpbm-mirror-e5283cbeddb6cdc26305d885f26461a631aed7e8.tar.xz netpbm-mirror-e5283cbeddb6cdc26305d885f26461a631aed7e8.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@4333 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'generator')
-rw-r--r-- | generator/pamseq.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/generator/pamseq.c b/generator/pamseq.c index 222175ac..796ce6a1 100644 --- a/generator/pamseq.c +++ b/generator/pamseq.c @@ -9,7 +9,7 @@ -struct cmdlineInfo { +struct CmdlineInfo { /* All the information the user supplied in the command line, in a form easy for the program to use. */ @@ -21,8 +21,8 @@ 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 @@ -48,7 +48,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_optParseOptions3(&argc, (char **)argv, opt, sizeof(opt), 0); /* Uses and sets argc, argv, and some of *cmdlineP and others. */ if (!tupletypeSpec) @@ -151,9 +151,9 @@ permuteHigherPlanes(struct pam const pam, int const nextplane, int -main(int argc, char **argv) { +main(int argc, const char **argv) { - struct cmdlineInfo cmdline; + struct CmdlineInfo cmdline; struct pam pam; int col; tuple lowerPlanes; @@ -165,7 +165,7 @@ main(int argc, char **argv) { */ tuple * tuplerow; - pnm_init(&argc, argv); + pm_proginit(&argc, argv); parseCommandLine(argc, argv, &cmdline); |