X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fprompter.c;h=03038a6bc25928fd91760f43b5b59f4d9ea59c4e;hp=823760ef49b91e48b3be607a1541281e8ecdf178;hb=fede6e42d81ce34fd5c1bbe7fb2757b281c2573a;hpb=c62aa648e80ae81ac4aa354ab15783c8fb172514 diff --git a/uip/prompter.c b/uip/prompter.c index 823760e..03038a6 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; }