X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fviamail.c;h=e9b26b76e3eb63c3cfae266cb75aa82de1181504;hb=49856d905bfbaf3025967cbfe7631440978bccc8;hp=aea746d3f113c0913915c6e8aa20ae77e78c4494;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/viamail.c b/uip/viamail.c index aea746d..e9b26b7 100644 --- a/uip/viamail.c +++ b/uip/viamail.c @@ -18,10 +18,6 @@ #include #include -#ifdef HAVE_SYS_WAIT_H -# include -#endif - static struct swit switches[] = { #define TOSW 0 { "to mailpath", 0 }, @@ -56,12 +52,6 @@ extern int verbsw; int ebcdicsw = 0; /* hack for linking purposes */ -/* mhmisc.c */ -void set_endian (void); - -/* mhoutsbr.c */ -int writeBase64aux (FILE *, FILE *); - /* * static prototypes */ @@ -101,10 +91,10 @@ main (int argc, char **argv) case HELPSW: snprintf (buf, sizeof(buf), "%s [switches]", invo_name); print_help (buf, switches, 1); - done (1); + done (0); case VERSIONSW: print_version(invo_name); - done (1); + done (0); case TOSW: if (!(f1 = *argp++)) @@ -156,8 +146,6 @@ main (int argc, char **argv) } } - set_endian (); - if (!f1) adios (NULL, "missing -viamail \"mailpath\" switch"); @@ -189,7 +177,7 @@ via_mail (char *mailsw, char *subjsw, char *parmsw, char *descsw, strncpy (tmpfil, tfile, sizeof(tmpfil)); if (!strchr(mailsw, '@')) - mailsw = concat (mailsw, "@", LocalName (), NULL); + mailsw = concat (mailsw, "@", LocalName (0), NULL); fprintf (fp, "To: %s\n", mailsw); if (subjsw) @@ -197,7 +185,7 @@ via_mail (char *mailsw, char *subjsw, char *parmsw, char *descsw, if (fromsw) { if (!strchr(fromsw, '@')) - fromsw = concat (fromsw, "@", LocalName (), NULL); + fromsw = concat (fromsw, "@", LocalName (0), NULL); fprintf (fp, "From: %s\n", fromsw); }