X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fmhmail.c;h=76e9e80095a8383c650ae175d0fcb2c34aa593b6;hb=1a02dc347cf3d583b8b2e4a57e9ff32cf82240e9;hp=e906b1d3c928d0e9031e37692d222f18df0b1f04;hpb=2f689a1cb907a5de04e6d39ffd217a69af3216c7;p=mmh diff --git a/uip/mhmail.c b/uip/mhmail.c index e906b1d..76e9e80 100644 --- a/uip/mhmail.c +++ b/uip/mhmail.c @@ -2,8 +2,6 @@ /* * mhmail.c -- simple mail program * - * $Id$ - * * This code is Copyright (c) 2002, by the authors of nmh. See the * COPYRIGHT file in the root directory of the nmh distribution for * complete copyright information. @@ -39,14 +37,15 @@ static char tmpfil[BUFSIZ]; /* * static prototypes */ -static RETSIGTYPE intrser (int); +static void intrser (int); int main (int argc, char **argv) { pid_t child_id; - int status, i, iscc = 0, nvec; + int status, iscc = 0, nvec; + size_t i; int queued = 0, resent = 0, somebody; char *cp, *tolist = NULL, *cclist = NULL, *subject = NULL; char *from = NULL, *body = NULL, **argp, **arguments; @@ -85,10 +84,10 @@ main (int argc, char **argv) snprintf (buf, sizeof(buf), "%s [addrs ... [switches]]", invo_name); print_help (buf, switches, 0); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case FROMSW: if (!(from = *argp++) || *from == '-') @@ -199,14 +198,9 @@ main (int argc, char **argv) } -static RETSIGTYPE +static void intrser (int i) { -#ifndef RELIABLE_SIGNALS - if (i) - SIGNAL (i, SIG_IGN); -#endif - unlink (tmpfil); done (i != 0 ? 1 : 0); }