projects
/
pazpar2-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make more room for YAZ version string
[pazpar2-moved-to-github.git]
/
src
/
http.c
diff --git
a/src/http.c
b/src/http.c
index
e125b44
..
3408089
100644
(file)
--- a/
src/http.c
+++ b/
src/http.c
@@
-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>
*/
#include <stdio.h>
@@
-19,6
+19,8
@@
#include <cconfig.h>
#endif
#include <cconfig.h>
#endif
+#include <netinet/in.h>
+
#include <yaz/yaz-util.h>
#include <yaz/comstack.h>
#include <netdb.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);
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)
myaddr.sin_family = AF_INET;
pp = strchr(addr, ':');
if (pp)