X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fcomp.c;h=f867593251fb3d2a1b5838d4f3c76a2b77c6c12b;hp=4768fc4a3d1281a48f93f65ddfb45e32bad9c547;hb=fede6e42d81ce34fd5c1bbe7fb2757b281c2573a;hpb=c62aa648e80ae81ac4aa354ab15783c8fb172514 diff --git a/uip/comp.c b/uip/comp.c index 4768fc4..f867593 100644 --- a/uip/comp.c +++ b/uip/comp.c @@ -55,17 +55,18 @@ main(int argc, char **argv) switch (smatch(++cp, switches)) { case AMBIGSW: ambigsw(cp, switches); - done(1); + /* sysexits.h EX_USAGE */ + exit(1); case UNKWNSW: adios(NULL, "-%s unknown", cp); case HELPSW: snprintf(buf, sizeof(buf), "%s [+folder] [msg] [switches]", invo_name); print_help(buf, switches, 1); - done(1); + exit(0); case VERSIONSW: print_version(invo_name); - done(1); + exit(0); case EDITRSW: if (!(ed = *argp++) || *ed == '-') @@ -132,7 +133,8 @@ main(int argc, char **argv) adios(NULL, "no messages in %s", folder); /* parse the message range/sequence/name and set SELECTED */ if (!m_convert(mp, msg)) - done(1); + /* sysexits.h EX_USAGE */ + exit(1); seq_setprev(mp); /* set the previous-sequence */ if (mp->numsel > 1) adios(NULL, "only one message at a time!"); @@ -162,6 +164,6 @@ main(int argc, char **argv) context_save(); what_now(ed, use, drft, NULL, 0, NULLMP, NULL, cwd); - done(1); + /* sysexits.h EX_SOFTWARE */ return 1; }