X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2Fslocal.c;fp=uip%2Fslocal.c;h=ff8df8c8280520ee5e08209405c2af03c61a7b11;hp=837f038d71ab2c55ca5b126c1f9c455bbfc6a0af;hb=fede6e42d81ce34fd5c1bbe7fb2757b281c2573a;hpb=c62aa648e80ae81ac4aa354ab15783c8fb172514 diff --git a/uip/slocal.c b/uip/slocal.c index 837f038..ff8df8c 100644 --- a/uip/slocal.c +++ b/uip/slocal.c @@ -186,17 +186,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 [switches] [address info sender]", invo_name); print_help(buf, switches, 0); - done(1); + exit(0); case VERSIONSW: print_version(invo_name); - done(1); + exit(0); case ADDRSW: if (!(addr = *argp++)) { @@ -397,8 +397,7 @@ main(int argc, char **argv) /* deliver the message */ status = localmail(fd, mdlvr); - done(status != -1 ? RCV_MOK : RCV_MBX); - return 1; + return (status != -1 ? RCV_MOK : RCV_MBX); }