X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fprompter.c;h=4d0ce860fef8ea0742b0dc2d10cd41dc2436f2b1;hp=ef33db96a6ab1a2b2208e2522bd79b703a699d69;hb=5a12e4b0477d3ad699f5713682d26079f2792d17;hpb=f9ed40f2742263b3a1023bedee4139b4b18f0a86 diff --git a/uip/prompter.c b/uip/prompter.c index ef33db9..4d0ce86 100644 --- 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); - done(1); + exit(1); 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); - done(1); + exit(0); case VERSIONSW: print_version(invo_name); - done(1); + exit(0); case PREPSW: prepend++; @@ -160,7 +160,8 @@ main(int argc, char **argv) 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); @@ -254,8 +255,7 @@ has_no_body: unlink(tmpfil); context_save(); /* save the context file */ - done(0); - return 1; + return 0; }