]> diplodocus.org Git - nmh/blobdiff - mts/smtp/smtp.c
mhlsbr.c: Delete file-static function pointer mhl_action.
[nmh] / mts / smtp / smtp.c
index 80dabb7831ead6f2c274ee51e17673609c121bd7..c7d95073fccbc8ec976babbbba28af8976ebb77c 100644 (file)
@@ -339,7 +339,7 @@ sendmail_init (char *client, int watch, int verbose, int debug, int sasl,
            execvp (sendmail, vec);
            fprintf (stderr, "unable to exec ");
            perror (sendmail);
-           _exit (-1);         /* NOTREACHED */
+           _exit(1);           /* NOTREACHED */
 
        default: 
            SIGNAL (SIGPIPE, SIG_IGN);
@@ -533,14 +533,14 @@ sm_wtxt (char *buffer, int len)
 
     result = sm_wstream (buffer, len);
 
-    return (result == NOTOK ? RP_BHST : RP_OK);
+    return result == NOTOK ? RP_BHST : RP_OK;
 }
 
 
 int
 sm_wtend (void)
 {
-    if (sm_wstream ((char *) NULL, 0) == NOTOK)
+    if (sm_wstream(NULL, 0) == NOTOK)
        return RP_BHST;
 
     switch (smtalk (SM_DOT + 3 * sm_addrs, ".")) {
@@ -632,7 +632,7 @@ sm_end (int type)
        status = OK;
     }
 
-    return (status ? RP_BHST : RP_OK);
+    return status ? RP_BHST : RP_OK;
 }
 
 
@@ -935,7 +935,7 @@ EHLOset (char *s)
        }
     }
 
-    return 0;
+    return NULL;
 }
 
 /*