projects
/
mmh
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Replace done with exit at uip
[mmh]
/
uip
/
prompter.c
diff --git
a/uip/prompter.c
b/uip/prompter.c
index
823760e
..
03038a6
100644
(file)
--- a/
uip/prompter.c
+++ b/
uip/prompter.c
@@
-71,7
+71,7
@@
main(int argc, char **argv)
switch (smatch(++cp, switches)) {
case AMBIGSW:
ambigsw(cp, switches);
switch (smatch(++cp, switches)) {
case AMBIGSW:
ambigsw(cp, switches);
- done(1);
+ exit(1);
case UNKWNSW:
adios(NULL, "-%s unknown", cp);
case UNKWNSW:
adios(NULL, "-%s unknown", cp);
@@
-80,10
+80,10
@@
main(int argc, char **argv)
"%s [switches] file",
invo_name);
print_help(buffer, switches, 1);
"%s [switches] file",
invo_name);
print_help(buffer, switches, 1);
- done(1);
+ exit(0);
case VERSIONSW:
print_version(invo_name);
case VERSIONSW:
print_version(invo_name);
- done(1);
+ exit(0);
case PREPSW:
prepend++;
case PREPSW:
prepend++;
@@
-160,7
+160,8
@@
main(int argc, char **argv)
if (i == -1) {
abort:
unlink(tmpfil);
if (i == -1) {
abort:
unlink(tmpfil);
- done(1);
+ /* sysexits.h EX_DATAERR */
+ exit(1);
}
if (i || (field[0]!='\n' && field[0]!='\0')) {
fprintf(out, "%s:", name);
}
if (i || (field[0]!='\n' && field[0]!='\0')) {
fprintf(out, "%s:", name);
@@
-254,8
+255,7
@@
has_no_body:
unlink(tmpfil);
context_save(); /* save the context file */
unlink(tmpfil);
context_save(); /* save the context file */
- done(0);
- return 1;
+ return 0;
}
}