X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fpackf.c;h=f9d02e8f5da56de4520a2aaf2c86eb23281bcc30;hb=2823e13f67239db7deb7274f3a47bfbff56c7c64;hp=763b6e708b9369d9f5c59bde5bbd60d9258f7b18;hpb=ccf4f175ef4c4e7522f9510a4a1149c15d810dd9;p=mmh diff --git a/uip/packf.c b/uip/packf.c index 763b6e7..f9d02e8 100644 --- a/uip/packf.c +++ b/uip/packf.c @@ -47,17 +47,17 @@ 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); 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); } } if (*cp == '+' || *cp == '@') { @@ -90,7 +90,7 @@ main(int argc, char **argv) /* parse all the message ranges/sequences and set SELECTED */ for (msgnum = 0; msgnum < msgs.size; msgnum++) if (!m_convert(mp, msgs.msgs[msgnum])) - done(1); + exit(1); seq_setprev(mp); /* set the previous-sequence */ /* copy all the SELECTED messages to stdout */ @@ -113,6 +113,5 @@ main(int argc, char **argv) seq_save(mp); context_save(); folder_free(mp); - done(0); - return 1; + return 0; }