X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/459c5e3d66287e314dff8543df32c6c14a8464c6..0a01282c77d958d15a135ade3fcd1ef6c57c7273:/uip/post.c diff --git a/uip/post.c b/uip/post.c index 7cbf9dc9..c6a09175 100644 --- a/uip/post.c +++ b/uip/post.c @@ -12,6 +12,7 @@ #include #include #include +#include "h/done.h" #include #include #include @@ -1224,7 +1225,7 @@ get_header (char *header, struct headers *table) header = FENDNULL(header); for (h = table; h->value; h++) if (!strcasecmp(FENDNULL(h->value), header)) - return (h - table); + return h - table; return NOTOK; } @@ -1300,7 +1301,7 @@ putadr (char *name, char *aka, struct mailname *mp, FILE *out, linepos += len; - return (flags & HTRY); + return flags & HTRY; } @@ -1427,7 +1428,7 @@ annoaux (struct mailname *mp) snprintf (buffer, sizeof(buffer), "%s\n", adrformat (mp)); i = strlen (buffer); - return (write (pfd, buffer, i) == i ? OK : NOTOK); + return write(pfd, buffer, i) == i ? OK : NOTOK; } @@ -1537,7 +1538,7 @@ make_bcc_file (int dashstuff) execvp (program, vec); fprintf (stderr, "unable to exec "); perror (mhlproc); - _exit (-1); + _exit(1); default: pidXwait (child_id, mhlproc); @@ -2012,7 +2013,7 @@ fcc (char *file, char *folder) arglist[argp++] = fold; arglist[argp] = NULL; execvp (program, arglist); - _exit (-1); + _exit(1); default: if ((status = pidwait (child_id, OK))) {