New
[pazpar2-moved-to-github.git] / src / http.c
index e125b44..3408089 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * $Id: http.c,v 1.7 2007-01-10 09:35:57 adam Exp $
+ * $Id: http.c,v 1.9 2007-01-10 11:56:10 adam Exp $
  */
 
 #include <stdio.h>
@@ -19,6 +19,8 @@
 #include <cconfig.h>
 #endif
 
+#include <netinet/in.h>
+
 #include <yaz/yaz-util.h>
 #include <yaz/comstack.h>
 #include <netdb.h>
@@ -787,7 +789,7 @@ void http_init(const char *addr)
 
     yaz_log(YLOG_LOG, "HTTP listener is %s", addr);
 
-    bzero(&myaddr, sizeof myaddr);
+    memset(&myaddr, 0, sizeof myaddr);
     myaddr.sin_family = AF_INET;
     pp = strchr(addr, ':');
     if (pp)