X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fburst.c;h=db2ddc68871e36ecce091400d37789028fc31e6d;hb=2823e13f67239db7deb7274f3a47bfbff56c7c64;hp=23b737ecd52b11710e9e390a53f93d4f6fc7a63a;hpb=68a686adeb39223a5e1ad35e4a24890ec053679d;p=mmh diff --git a/uip/burst.c b/uip/burst.c index 23b737e..db2ddc6 100644 --- a/uip/burst.c +++ b/uip/burst.c @@ -12,9 +12,9 @@ static struct swit switches[] = { #define VERBSW 0 { "verbose", 0 }, #define NVERBSW 1 - { "noverbose", 0 }, + { "noverbose", 2 }, #define VERSIONSW 2 - { "version", 0 }, + { "Version", 0 }, #define HELPSW 3 { "help", 0 }, { NULL, 0 } @@ -45,9 +45,7 @@ main(int argc, char **argv) struct smsg *smsgs; struct msgs *mp; -#ifdef LOCALE setlocale(LC_ALL, ""); -#endif invo_name = mhbasename(argv[0]); /* read user profile/context */ @@ -61,17 +59,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\n", cp); case HELPSW: snprintf(buf, sizeof(buf), "%s [+folder] [msgs] [switches]", invo_name); print_help(buf, switches, 1); - done(1); + exit(0); case VERSIONSW: print_version(invo_name); - done(1); + exit(0); case VERBSW: verbosw++; @@ -111,7 +110,8 @@ main(int argc, char **argv) /* parse all the message ranges/sequences and set SELECTED */ for (msgnum = 0; msgnum < msgp; msgnum++) if (!m_convert(mp, msgs[msgnum])) - done(1); + /* sysexits.h EX_USAGE */ + exit(1); seq_setprev(mp); /* set the previous-sequence */ smsgs = (struct smsg *) @@ -150,8 +150,7 @@ main(int argc, char **argv) seq_save(mp); context_save(); folder_free(mp); - done(0); - return 1; + return 0; }