diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-09-29 03:18:57 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-09-29 03:18:57 +0000 |
commit | e227331a6b5626e100705fcff3269fd8479ea988 (patch) | |
tree | fd51fff8ec8dc90185ce5ae457805a0f25a0ded6 /editor/ppmcolormask.c | |
parent | cdd64d00181d5e5a6c8142cdb59f2215014ca82d (diff) | |
download | netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.tar.gz netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.tar.xz netpbm-mirror-e227331a6b5626e100705fcff3269fd8479ea988.zip |
Promote current Development release as Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3352 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'editor/ppmcolormask.c')
-rw-r--r-- | editor/ppmcolormask.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/editor/ppmcolormask.c b/editor/ppmcolormask.c index d9f68b68..3812ac86 100644 --- a/editor/ppmcolormask.c +++ b/editor/ppmcolormask.c @@ -66,10 +66,10 @@ parseColorOpt(const char * const colorOpt, char * colorOptWork; char * cursor; bool eol; - + colorOptWork = strdup(colorOpt); cursor = &colorOptWork[0]; - + eol = FALSE; /* initial value */ colorCt = 0; /* initial value */ while (!eol && colorCt < ARRAY_SIZE(cmdlineP->maskColor)) { @@ -150,7 +150,7 @@ parseCommandLine(int argc, const char ** argv, cmdlineP->inputFilename = "-"; /* he wants stdin */ else if (argc-1 == 2) cmdlineP->inputFilename = argv[2]; - else + else pm_error("Too many arguments. The only arguments accepted " "are the mask color and optional input file name"); } @@ -191,7 +191,7 @@ isBkColor(tuple const comparator, /* TODO: keep a cache of the bk color for each color in a colorhash_table. */ - + assert(pamP->depth >= 3); PPM_ASSIGN(comparatorPixel, @@ -281,7 +281,7 @@ main(int argc, const char *argv[]) { if (colorIsInSet(inputRow[col], &inPam, cmdline)) { maskRow[col][0] = PAM_BLACK; ++numPixelsMasked; - } else + } else maskRow[col][0] = PAM_BW_WHITE; } pnm_writepamrow(&outPam, maskRow); |