]> diplodocus.org Git - nmh/blobdiff - mts/smtp/smtp.c
path.c: Move interface to own file.
[nmh] / mts / smtp / smtp.c
index 40a3cf11901a449f521b5c72d647294982600239..0887e1cd99891f1cc0e24acea2dcf4701788eedc 100644 (file)
@@ -5,12 +5,13 @@
  * complete copyright information.
  */
 
-#include <h/mh.h>
+#include "h/mh.h"
+#include "sbr/error.h"
 #include "smtp.h"
-#include <h/mts.h>
-#include <h/signals.h>
-#include <h/utils.h>
-#include <h/netsec.h>
+#include "h/mts.h"
+#include "h/signals.h"
+#include "h/utils.h"
+#include "h/netsec.h"
 
 #include <sys/socket.h>
 #include "sbr/base64.h"
@@ -785,7 +786,7 @@ smhear (void)
     char **ehlo = EHLOkeys, *buffer;
 
     if (doingEHLO) {
-       static int at_least_once = 0;
+       static bool at_least_once;
 
        if (at_least_once) {
            char *ep;
@@ -795,7 +796,7 @@ smhear (void)
                free (ep);
            }
        } else {
-           at_least_once = 1;
+           at_least_once = true;
        }
 
        ehlo = EHLOkeys;