about summary refs log tree commit diff
path: root/converter/other/pstopnm.c
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-01 22:26:20 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2014-09-01 22:26:20 +0000
commitfef188f9f816f4edc3d66bb17290690b9ffe3337 (patch)
treec24eca3bd7d6aedcf73890ff943dde58491f94d7 /converter/other/pstopnm.c
parent4a0f2f07a0a4c27f9491d7ce89d812d1ae77cbeb (diff)
downloadnetpbm-mirror-fef188f9f816f4edc3d66bb17290690b9ffe3337.tar.gz
netpbm-mirror-fef188f9f816f4edc3d66bb17290690b9ffe3337.tar.xz
netpbm-mirror-fef188f9f816f4edc3d66bb17290690b9ffe3337.zip
Don't use reserved word 'stdout'
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@2261 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'converter/other/pstopnm.c')
-rw-r--r--converter/other/pstopnm.c6
1 files changed, 3 insertions, 3 deletions
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("-");