diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-30 22:28:39 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2011-07-30 22:28:39 +0000 |
commit | 3ec258b0b7246c147e03ee8d41a513bdbee23783 (patch) | |
tree | a2ad8de2464baf2dc9faeae9db89ac8d5a24b909 | |
parent | 1b6b1eabcd212339e4eca66430e3d95050456283 (diff) | |
download | netpbm-mirror-3ec258b0b7246c147e03ee8d41a513bdbee23783.tar.gz netpbm-mirror-3ec258b0b7246c147e03ee8d41a513bdbee23783.tar.xz netpbm-mirror-3ec258b0b7246c147e03ee8d41a513bdbee23783.zip |
cleanup
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@1523 9d0c8265-081b-0410-96cb-a4ca84ce46f8
-rw-r--r-- | editor/pamcomp.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/editor/pamcomp.c b/editor/pamcomp.c index 1247a54d..60304891 100644 --- a/editor/pamcomp.c +++ b/editor/pamcomp.c @@ -257,11 +257,11 @@ determineOutputType(struct pam * const composedPamP, composedPamP->maxval = pm_lcm(underlayPamP->maxval, overlayPamP->maxval, 1, PNM_OVERALLMAXVAL); - if (strcmp(composedPamP->tuple_type, "RGB") == 0) + if (streq(composedPamP->tuple_type, "RGB")) composedPamP->depth = 3; - else if (strcmp(composedPamP->tuple_type, "GRAYSCALE") == 0) + else if (streq(composedPamP->tuple_type, "GRAYSCALE")) composedPamP->depth = 1; - else if (strcmp(composedPamP->tuple_type, "BLACKANDWHITE") == 0) + else if (streq(composedPamP->tuple_type, "BLACKANDWHITE")) composedPamP->depth = 1; else /* Results are undefined for this case, so we just do something safe */ @@ -711,3 +711,6 @@ main(int argc, const char *argv[]) { */ return 0; } + + + |