about summary refs log tree commit diff
path: root/analyzer/pamfile.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-18 22:52:35 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2015-01-18 22:52:35 +0000
commit2084bd3edd3581105f85103d1dc6e52b48e8d90c (patch)
tree8b90f361c60d191ff92d92ebcb62f09fc465f04f /analyzer/pamfile.c
parent1d03456f43cc434fd7cbe73aa81e8ae0785e5fba (diff)
downloadnetpbm-mirror-2084bd3edd3581105f85103d1dc6e52b48e8d90c.tar.gz
netpbm-mirror-2084bd3edd3581105f85103d1dc6e52b48e8d90c.tar.xz
netpbm-mirror-2084bd3edd3581105f85103d1dc6e52b48e8d90c.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2382 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pamfile.c')
-rw-r--r--analyzer/pamfile.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/analyzer/pamfile.c b/analyzer/pamfile.c
index 9c5b2c33..bb55ecce 100644
--- a/analyzer/pamfile.c
+++ b/analyzer/pamfile.c
@@ -16,7 +16,7 @@
 #include "shhopt.h"
 #include "pam.h"
 
-struct cmdlineInfo {
+struct CmdlineInfo {
     /* All the information the user supplied in the command line,
        in a form easy for the program to use.
     */
@@ -30,8 +30,8 @@ struct cmdlineInfo {
 
 
 static void
-parseCommandLine(int argc, char ** argv,
-                 struct cmdlineInfo * const cmdlineP) {
+parseCommandLine(int argc, const char ** argv,
+                 struct CmdlineInfo * const cmdlineP) {
 /*----------------------------------------------------------------------------
    Note that the file spec array we return is stored in the storage that
    was passed to as as the argv array.
@@ -54,7 +54,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 */
 
     cmdlineP->inputFilespec = (const char **)&argv[1];
@@ -221,11 +221,11 @@ describeOneFile(const char * const name,
 
 
 int
-main(int argc, char *argv[]) {
+main(int argc, const char *argv[]) {
 
-    struct cmdlineInfo cmdline;
+    struct CmdlineInfo cmdline;
 
-    pnm_init(&argc, argv);
+    pm_proginit(&argc, argv);
 
     parseCommandLine(argc, argv, &cmdline);