]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - test-suite/tcp-banger2.c
SourceFormat Enforcement
[thirdparty/squid.git] / test-suite / tcp-banger2.c
index e6acd1a02d76a89f9e5b547867a9563181549094..b15eea4244c84c5010c096a4a5ed7f8487d2f234 100644 (file)
@@ -1,4 +1,4 @@
-#include "config.h"
+#include "squid.h"
 
 /* $Id$
 
@@ -11,7 +11,7 @@
 #define CHANGE_FD_SETSIZE 1
 
 /* Cannot increase FD_SETSIZE on Linux */
-#if defined(_SQUID_LINUX_)
+#if _SQUID_LINUX_
 #undef CHANGE_FD_SETSIZE
 #define CHANGE_FD_SETSIZE 0
 #endif
@@ -20,7 +20,7 @@
  * to return EINVAL. */
 /* Marian Durkovic <marian@svf.stuba.sk> */
 /* Peter Wemm <peter@spinner.DIALix.COM> */
-#if defined(_SQUID_FREEBSD_)
+#if _SQUID_FREEBSD_
 #include <osreldate.h>
 #if __FreeBSD_version < 220000
 #undef CHANGE_FD_SETSIZE
 #if HAVE_FCNTL_H
 #include <fcntl.h>
 #endif
-#ifdef HAVE_STRING_H
+#if HAVE_STRING_H
 #include <string.h>
 #endif
-#ifdef HAVE_STRINGS_H
+#if HAVE_STRINGS_H
 #include <strings.h>
 #endif
 #if HAVE_SIGNAL_H
@@ -54,9 +54,6 @@
 #if HAVE_TIME_H
 #include <time.h>
 #endif
-#if HAVE_SYS_TIME_H
-#include <sys/time.h>
-#endif
 #if HAVE_SYS_SOCKET_H
 #include <sys/socket.h>
 #endif
@@ -129,7 +126,6 @@ struct _f FD[SQUID_MAXFD];
 int nfds = 0;
 int maxfd = 0;
 
-
 static void
 free_request(struct _request *r)
 {