summaryrefslogtreecommitdiff
path: root/tests/server
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-02-28 00:55:06 +0000
committerYang Tse <yangsita@gmail.com>2008-02-28 00:55:06 +0000
commited63d9d4de2c40ee2bb15f3f2ffed0d9bfe54c22 (patch)
treed76ac6f2c064c5a952f43623d51ac3e335cdcfab /tests/server
parent8adc7038fe513ff3651845be186560686e797f14 (diff)
downloadcurl-ed63d9d4de2c40ee2bb15f3f2ffed0d9bfe54c22.tar.gz
header inclusion cleanup
Diffstat (limited to 'tests/server')
-rw-r--r--tests/server/getpart.c6
-rw-r--r--tests/server/resolve.c13
-rw-r--r--tests/server/sockfilt.c11
-rw-r--r--tests/server/sws.c11
-rw-r--r--tests/server/testpart.c6
-rw-r--r--tests/server/tftpd.c18
-rw-r--r--tests/server/util.c8
-rw-r--r--tests/server/util.h1
8 files changed, 17 insertions, 57 deletions
diff --git a/tests/server/getpart.c b/tests/server/getpart.c
index b66281aeb..0b327030b 100644
--- a/tests/server/getpart.c
+++ b/tests/server/getpart.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2007, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -23,10 +23,6 @@
#include "setup.h"
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
#include "getpart.h"
#define _MPRINTF_REPLACE /* use our functions only */
diff --git a/tests/server/resolve.c b/tests/server/resolve.c
index b579d460e..75b86432b 100644
--- a/tests/server/resolve.c
+++ b/tests/server/resolve.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2006, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -32,16 +32,9 @@
*/
#include "setup.h" /* portability help from the lib directory */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#include <time.h>
-#include <ctype.h>
-#include <sys/time.h>
-#include <sys/types.h>
-
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/tests/server/sockfilt.c b/tests/server/sockfilt.c
index 8db3ed522..c54734a52 100644
--- a/tests/server/sockfilt.c
+++ b/tests/server/sockfilt.c
@@ -48,16 +48,9 @@
*/
#include "setup.h" /* portability help from the lib directory */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#include <time.h>
-#include <ctype.h>
-#include <sys/time.h>
-#include <sys/types.h>
-
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/tests/server/sws.c b/tests/server/sws.c
index 99f0bddbd..5e68a3160 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -29,16 +29,9 @@
*/
#include "setup.h" /* portability help from the lib directory */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#include <time.h>
-#include <sys/time.h>
-#include <sys/types.h>
-#include <ctype.h>
-
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/tests/server/testpart.c b/tests/server/testpart.c
index c1ebdd44f..df0d1aa8f 100644
--- a/tests/server/testpart.c
+++ b/tests/server/testpart.c
@@ -5,7 +5,7 @@
* | (__| |_| | _ <| |___
* \___|\___/|_| \_\_____|
*
- * Copyright (C) 1998 - 2005, Daniel Stenberg, <daniel@haxx.se>, et al.
+ * Copyright (C) 1998 - 2008, Daniel Stenberg, <daniel@haxx.se>, et al.
*
* This software is licensed as described in the file COPYING, which
* you should have received as part of this distribution. The terms
@@ -23,10 +23,6 @@
#include "setup.h"
-#include <stdio.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
#include "getpart.h"
#define _MPRINTF_REPLACE /* use our functions only */
diff --git a/tests/server/tftpd.c b/tests/server/tftpd.c
index be5c5b95c..a98791de6 100644
--- a/tests/server/tftpd.c
+++ b/tests/server/tftpd.c
@@ -49,18 +49,13 @@
*/
#include "setup.h" /* portability help from the lib directory */
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
+
#ifdef HAVE_SYS_IOCTL_H
#include <sys/ioctl.h>
#endif
-#ifdef HAVE_SYS_STAT_H
-#include <sys/stat.h>
-#endif
-
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-
+#endif
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
@@ -84,12 +79,9 @@
#endif
#include <setjmp.h>
-#include <stdio.h>
-#include <errno.h>
-#include <ctype.h>
-#include <string.h>
-#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
#include <unistd.h>
+#endif
#ifdef HAVE_PWD_H
#include <pwd.h>
#endif
diff --git a/tests/server/util.c b/tests/server/util.c
index 762fa8450..3d12ba9b9 100644
--- a/tests/server/util.c
+++ b/tests/server/util.c
@@ -22,13 +22,9 @@
***************************************************************************/
#include "setup.h" /* portability help from the lib directory */
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <stdarg.h>
+#ifdef HAVE_SIGNAL_H
#include <signal.h>
-#include <sys/types.h>
-
+#endif
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
diff --git a/tests/server/util.h b/tests/server/util.h
index 0ec820e17..f5ec0333b 100644
--- a/tests/server/util.h
+++ b/tests/server/util.h
@@ -22,6 +22,7 @@
*
* $Id$
***************************************************************************/
+#include "setup.h" /* portability help from the lib directory */
void logmsg(const char *msg, ...);