X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/faf6326828be2108facd64fcca291c4ffb523eea..63621a81d16ab743de6b57d47578a9a2c670ad22:/uip/mhparam.c?ds=sidebyside diff --git a/uip/mhparam.c b/uip/mhparam.c index d726d53e..3fc381b8 100644 --- a/uip/mhparam.c +++ b/uip/mhparam.c @@ -131,13 +131,14 @@ static struct proc procs [] = { /* * static prototypes */ -static char *p_find(char *); +static char *p_find(char *) PURE; int main(int argc, char **argv) { - int i, compp = 0, missed = 0; + int i, compp = 0; + bool missed; int all = 0, debug = 0; int components = -1; char *cp, buf[BUFSIZ], **argp; @@ -232,6 +233,7 @@ main(int argc, char **argv) } + missed = false; if (! all) { if (components < 0) components = compp > 1; @@ -252,13 +254,12 @@ main(int argc, char **argv) printf("%s: ", comps[i]); puts(value); - } else if (missed < MAX_EXIT) - missed++; + } else + missed = true; } } - done (missed); - return 1; + done(missed); }