diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-08-25 15:56:02 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2008-08-25 15:56:02 +0000 |
commit | 360a30c0f7c211408f2d488d8a958fed720135ca (patch) | |
tree | dbb4730f9d7b80212e8e473a9cacb744593e4366 /editor | |
parent | ce7b20be4fd9cabd1a488930fcafc10de76f7e58 (diff) | |
download | netpbm-mirror-360a30c0f7c211408f2d488d8a958fed720135ca.tar.gz netpbm-mirror-360a30c0f7c211408f2d488d8a958fed720135ca.tar.xz netpbm-mirror-360a30c0f7c211408f2d488d8a958fed720135ca.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@716 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor')
-rw-r--r-- | editor/pnmstitch.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/editor/pnmstitch.c b/editor/pnmstitch.c index 61f02a04..45aee2f4 100644 --- a/editor/pnmstitch.c +++ b/editor/pnmstitch.c @@ -216,7 +216,7 @@ struct cmdlineInfo { unsigned int verbose; }; -static char minus[] = "-"; + static void parseCommandLine ( int argc, char ** argv, @@ -293,10 +293,10 @@ parseCommandLine ( int argc, char ** argv, /* NOTREACHED */ } else { if (argc-1 == 0) { - cmdlineP->leftFilespec = minus; - cmdlineP->rightFilespec = minus; + cmdlineP->leftFilespec = "-"; + cmdlineP->rightFilespec = "-"; } else if (argc-1 == 1) { - cmdlineP->leftFilespec = minus; + cmdlineP->leftFilespec = "-"; cmdlineP->rightFilespec = argv[1]; } else { cmdlineP->leftFilespec = argv[1]; @@ -311,7 +311,7 @@ parseCommandLine ( int argc, char ** argv, } else if (outputSpec) { cmdlineP->outputFilespec = outputOpt; } else { - cmdlineP->outputFilespec = minus; + cmdlineP->outputFilespec = "-"; } } } /* parseCommandLine() - end */ @@ -439,7 +439,7 @@ readinit(const char * const name) else { FILE * ifP; - if (strcmp(name,minus) == 0) { + if (streq(name, "-")) { ifP = stdin; image->name = strdup("<stdin>"); } else { @@ -468,7 +468,7 @@ readinit(const char * const name) static bool writeinit(Image * image) { - if (strcmp(image->name,minus) == 0) { + if (streq(image->name, "-")) { image->pam.file = stdout; strfree(image->name); image->name = strdup("<stdout>"); |