about summary refs log tree commit diff
path: root/analyzer/pamsumm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-04-15 18:16:45 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2017-04-15 18:16:45 +0000
commitbb38646dbb21febcf096d89b9327b9a1f881fba3 (patch)
tree83226fac0f2f747072c69945a8222091a3f316bb /analyzer/pamsumm.c
parent808c5dec708d56b46fcce796816347f4bc81fa87 (diff)
downloadnetpbm-mirror-bb38646dbb21febcf096d89b9327b9a1f881fba3.tar.gz
netpbm-mirror-bb38646dbb21febcf096d89b9327b9a1f881fba3.tar.xz
netpbm-mirror-bb38646dbb21febcf096d89b9327b9a1f881fba3.zip
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2947 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'analyzer/pamsumm.c')
-rw-r--r--analyzer/pamsumm.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/analyzer/pamsumm.c b/analyzer/pamsumm.c
index 151a8607..7d2c000a 100644
--- a/analyzer/pamsumm.c
+++ b/analyzer/pamsumm.c
@@ -30,12 +30,9 @@ struct CmdlineInfo {
 static void
 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
-   was passed to us as the argv array.
------------------------------------------------------------------------------*/
+
     optEntry * option_def;
-        /* Instructions to OptParseOptions2 on how to parse our options.
+        /* Instructions to OptParseOptions3 on how to parse our options.
          */
     optStruct3 opt;
 
@@ -45,7 +42,7 @@ parseCommandLine(int argc, const char ** const argv,
 
     MALLOCARRAY(option_def, 100);
 
-    option_def_index = 0;   /* incremented by OPTENTRY */
+    option_def_index = 0;   /* incremented by OPTENT3 */
     OPTENT3(0,   "sum",       OPT_FLAG,  NULL, &sumSpec,             0);
     OPTENT3(0,   "mean",      OPT_FLAG,  NULL, &meanSpec,            0);
     OPTENT3(0,   "min",       OPT_FLAG,  NULL, &minSpec,             0);
@@ -76,7 +73,7 @@ parseCommandLine(int argc, const char ** const argv,
         pm_error("You must specify one of -sum, -min, -max, or -mean");
         
     if (argc-1 > 1)
-        pm_error("Too many arguments (%d).  File spec is the only argument.",
+        pm_error("Too many arguments (%d).  File name is the only argument.",
                  argc-1);
 
     if (argc-1 < 1)
@@ -201,7 +198,7 @@ main(int argc, const char *argv[]) {
 
     FILE * ifP;
     tuple * inputRow;   /* Row from input image */
-    int row;
+    unsigned int row;
     struct CmdlineInfo cmdline;
     struct pam inpam;   /* Input PAM image */
     struct Accum accumulator;