diff options
author | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-06-30 20:05:55 +0000 |
---|---|---|
committer | giraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8> | 2018-06-30 20:05:55 +0000 |
commit | 81ba0303f29b08507cccad29eecf2b30b012df63 (patch) | |
tree | 981bdae8afd0d4fac5e4834ae2c0b3b9a0462d5a /other/pampick.c | |
parent | d9c9d6a198247612248ad094ed7d40dcd4fa9031 (diff) | |
download | netpbm-mirror-81ba0303f29b08507cccad29eecf2b30b012df63.tar.gz netpbm-mirror-81ba0303f29b08507cccad29eecf2b30b012df63.tar.xz netpbm-mirror-81ba0303f29b08507cccad29eecf2b30b012df63.zip |
Promote current Development release as Advanced
git-svn-id: http://svn.code.sf.net/p/netpbm/code/advanced@3289 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'other/pampick.c')
-rw-r--r-- | other/pampick.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/other/pampick.c b/other/pampick.c index 61941f06..67d42fc5 100644 --- a/other/pampick.c +++ b/other/pampick.c @@ -58,7 +58,7 @@ isMemberOfUintSet(const struct uintSet * const uintSetP, unsigned int i; retval = FALSE; /* initial assumption */ - + for (i = 0; i < uintSetP->count; ++i) { if (uintSetP->list[i] == searchValue) retval = TRUE; @@ -137,7 +137,7 @@ parseCommandLine(int argc, const char ** argv, if (*endPtr != '\0') pm_error("Garbage in sequence number argument '%s': '%s'", argv[i+1], endPtr); - + if (strtolResult < 0) pm_error("Image sequence number cannot be negative. " "You specified %d", strtolResult); @@ -171,7 +171,7 @@ extractOneImage(FILE * const infileP, struct pam inpam; struct pam outpam; enum pm_check_code checkRetval; - + unsigned int row; tuple * tuplerow; @@ -222,13 +222,13 @@ main(int argc, const char *argv[]) { struct cmdlineInfo cmdline; int eof; /* No more images in input */ - unsigned int imageSeq; + unsigned int imageSeq; /* Sequence of current image in input file. First = 0 */ pm_proginit(&argc, argv); parseCommandLine(argc, argv, &cmdline); - + eof = FALSE; for (imageSeq = 0; !eof; ++imageSeq) { if (isMemberOfUintSet(&cmdline.imageSeqList, imageSeq)) { @@ -247,6 +247,6 @@ main(int argc, const char *argv[]) { pm_close(stdin); pm_close(stdout); - + return 0; } |