From bb38646dbb21febcf096d89b9327b9a1f881fba3 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Sat, 15 Apr 2017 18:16:45 +0000 Subject: cleanup git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2947 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- analyzer/pamsumm.c | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'analyzer/pamsumm.c') 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; -- cgit 1.4.1