From d119d8561d5daec0a2dc0acd890e70fd4ff6dbf6 Mon Sep 17 00:00:00 2001 From: giraffedata Date: Thu, 4 Sep 2014 02:31:25 +0000 Subject: Release 10.67.04 git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@2269 9d0c8265-081b-0410-96cb-a4ca84ce46f8 --- converter/other/pstopnm.c | 6 +++--- converter/ppm/hpcdtoppm/pcdovtoppm | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'converter') diff --git a/converter/other/pstopnm.c b/converter/other/pstopnm.c index 27e98611..554dc8f3 100644 --- a/converter/other/pstopnm.c +++ b/converter/other/pstopnm.c @@ -79,7 +79,7 @@ struct CmdlineInfo { unsigned int ysize; /* zero means unspecified */ unsigned int dpi; /* zero means unspecified */ enum Orientation orientation; - unsigned int stdout; + unsigned int stdoutSpec; unsigned int textalphabits; }; @@ -127,7 +127,7 @@ parseCommandLine(int argc, char ** argv, OPTENT3(0, "dpi", OPT_UINT, &cmdlineP->dpi, &dpiSpec, 0); OPTENT3(0, "portrait", OPT_FLAG, NULL, &portraitOpt, 0); OPTENT3(0, "landscape", OPT_FLAG, NULL, &landscapeOpt, 0); - OPTENT3(0, "stdout", OPT_FLAG, NULL, &cmdlineP->stdout, 0); + OPTENT3(0, "stdout", OPT_FLAG, NULL, &cmdlineP->stdoutSpec, 0); OPTENT3(0, "textalphabits", OPT_UINT, &cmdlineP->textalphabits, &textalphabitsSpec, 0); @@ -664,7 +664,7 @@ computeOutfileArg(struct CmdlineInfo const cmdline) { -----------------------------------------------------------------------------*/ const char * retval; /* malloc'ed */ - if (cmdline.stdout) + if (cmdline.stdoutSpec) retval = strdup("-"); else if (streq(cmdline.inputFileName, "-")) retval = strdup("-"); diff --git a/converter/ppm/hpcdtoppm/pcdovtoppm b/converter/ppm/hpcdtoppm/pcdovtoppm index 1f8b3006..dbf6f53d 100755 --- a/converter/ppm/hpcdtoppm/pcdovtoppm +++ b/converter/ppm/hpcdtoppm/pcdovtoppm @@ -195,7 +195,7 @@ if [ ${#imagefiles[*]} -gt 0 ] ; then rowfiles="$rowfiles $rowfile" fi -if [ ${#rowfiles[*]} == 1 ]; then +if [ ${#rowfiles[*]} = 1 ]; then cat $rowfiles else if [ "$colors" = "n" ] ; then -- cgit 1.4.1