X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fwhatnow.c;h=be046ac79f632fadc3dfb6838abab206988ed4c7;hp=65d2fb021c5f176e632a0e0bf4b8d4fa169e113f;hb=ee8d01d64e8832304256de53db07228e2be67f6a;hpb=9cf6132a6ea29968131a000bc2fb6860affac45e diff --git a/uip/whatnow.c b/uip/whatnow.c index 65d2fb0..be046ac 100644 --- a/uip/whatnow.c +++ b/uip/whatnow.c @@ -32,6 +32,8 @@ static struct swit switches[] = { { NULL, 0 } }; +char *version=VERSION; + /* ** Options at the "whatnow" prompt */ @@ -173,10 +175,7 @@ main(int argc, char **argv) } snprintf(prompt, sizeof(prompt), myprompt, invo_name); - for (;;) { - if (!(argp = getans(prompt, aleqs))) { - exit(EX_IOERR); - } + while ((argp = getans(prompt, aleqs))) { switch (smatch(*argp, aleqs)) { case DISPSW: /* display the msg being replied to or distributed */ @@ -381,7 +380,8 @@ main(int argc, char **argv) break; } } - /*NOTREACHED*/ + + exit(EX_IOERR); }