/*
- * $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>
#include <cconfig.h>
#endif
+#include <netinet/in.h>
+
#include <yaz/yaz-util.h>
#include <yaz/comstack.h>
#include <netdb.h>
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)