projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add a test to test-scan-multibyte
[mmh]
/
uip
/
whatnow.c
diff --git
a/uip/whatnow.c
b/uip/whatnow.c
index
65d2fb0
..
be046ac
100644
(file)
--- a/
uip/whatnow.c
+++ b/
uip/whatnow.c
@@
-32,6
+32,8
@@
static struct swit switches[] = {
{ NULL, 0 }
};
{ NULL, 0 }
};
+char *version=VERSION;
+
/*
** Options at the "whatnow" prompt
*/
/*
** Options at the "whatnow" prompt
*/
@@
-173,10
+175,7
@@
main(int argc, char **argv)
}
snprintf(prompt, sizeof(prompt), myprompt, invo_name);
}
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 */
switch (smatch(*argp, aleqs)) {
case DISPSW:
/* display the msg being replied to or distributed */
@@
-381,7
+380,8
@@
main(int argc, char **argv)
break;
}
}
break;
}
}
- /*NOTREACHED*/
+
+ exit(EX_IOERR);
}
}