]> diplodocus.org Git - nmh/blobdiff - sbr/client.c
Move etc/rmmproc.messageid to fix its install permissions.
[nmh] / sbr / client.c
index 974cf8fb09b24d5aa2586939c3060f12d57cc7d2..572f8ee0adecf046c00ce3b52f64038c1fc98c5e 100644 (file)
@@ -1,15 +1,14 @@
-
-/*
- * client.c -- connect to a server
+/* client.c -- connect to a server
  *
  * 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.
  */
 
-#include <h/mh.h>
-#include <h/mts.h>
-#include <h/utils.h>
+#include "h/mh.h"
+#include "client.h"
+#include "h/mts.h"
+#include "h/utils.h"
 #include <sys/socket.h>
 #include <netinet/in.h>
 #include <netdb.h>
@@ -30,7 +29,7 @@ client (char *server, char *service, char *response, int len_response,
        return NOTOK;
     }
 
-    memset(&hints, 0, sizeof(hints));
+    ZERO(&hints);
 #ifdef AI_ADDRCONFIG
     hints.ai_flags = AI_ADDRCONFIG;
 #endif