projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix leak for odr_print of ZOOM connection.
[yaz-moved-to-github.git]
/
src
/
tcpdchk.c
diff --git
a/src/tcpdchk.c
b/src/tcpdchk.c
index
d19f8f6
..
cfbda34
100644
(file)
--- a/
src/tcpdchk.c
+++ b/
src/tcpdchk.c
@@
-1,5
+1,5
@@
/* This file is part of the YAZ toolkit.
/* This file is part of the YAZ toolkit.
- * Copyright (C) 1995-2008 Index Data
+ * Copyright (C) 1995-2009 Index Data
* See the file LICENSE for details.
*/
/**
* See the file LICENSE for details.
*/
/**
@@
-10,24
+10,31
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
+#ifdef WIN32
+#include <winsock.h>
+#endif
+
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
#if HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef WIN32
-#include <winsock.h>
-#else
+#if HAVE_NETINET_IN_H
#include <netinet/in.h>
#include <netinet/in.h>
-#include <netdb.h>
+#endif
+
+#if HAVE_ARPA_INET_H
#include <arpa/inet.h>
#include <arpa/inet.h>
-#include <netinet/tcp.h>
#endif
#if HAVE_SYS_SOCKET_H
#endif
#if HAVE_SYS_SOCKET_H
+/* freebsd wants this for AF_INET */
#include <sys/socket.h>
#endif
#include <sys/socket.h>
#endif
-#include <yaz/yconfig.h>
+#if HAVE_NETDB_H
+#include <netdb.h>
+#endif
+
#include <yaz/comstack.h>
#include <yaz/statserv.h>
#include <yaz/log.h>
#include <yaz/comstack.h>
#include <yaz/statserv.h>
#include <yaz/log.h>
@@
-99,6
+106,7
@@
int check_ip_tcpd(void *cd, const char *addr, int len, int type)
/*
* Local variables:
* c-basic-offset: 4
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab