From a0b207164c6c943adb8b3bf89b375a491b41806a Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Fri, 14 Dec 2012 17:38:18 +0100 Subject: setup_once.h: refactor inclusion of and Inclusion of top two most included header files now done in setup_once.h --- tests/libtest/lib1502.c | 7 ------- tests/libtest/lib505.c | 9 +-------- tests/libtest/test.h | 10 ---------- 3 files changed, 1 insertion(+), 25 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/lib1502.c b/tests/libtest/lib1502.c index bb008f17c..1ded5ab7c 100644 --- a/tests/libtest/lib1502.c +++ b/tests/libtest/lib1502.c @@ -30,13 +30,6 @@ #include #endif -#include -#include - -/* somewhat unix-specific */ -#include -#include - int test(char *URL) { CURL *ehandle; diff --git a/tests/libtest/lib505.c b/tests/libtest/lib505.c index 394131ebe..99b3a0afe 100644 --- a/tests/libtest/lib505.c +++ b/tests/libtest/lib505.c @@ -5,7 +5,7 @@ * | (__| |_| | _ <| |___ * \___|\___/|_| \_\_____| * - * Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. + * Copyright (C) 1998 - 2012, Daniel Stenberg, , et al. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution. The terms @@ -21,17 +21,10 @@ ***************************************************************************/ #include "test.h" -#ifdef HAVE_SYS_SOCKET_H -#include -#endif #ifdef HAVE_FCNTL_H #include #endif -#ifdef HAVE_UNISTD_H -#include -#endif - #include "memdebug.h" /* diff --git a/tests/libtest/test.h b/tests/libtest/test.h index ffa4be166..fcc91ad8b 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -30,21 +30,11 @@ #include "setup.h" #include -#include -#include -#include -#ifdef HAVE_SYS_SOCKET_H -#include -#endif #ifdef HAVE_SYS_SELECT_H /* since so many tests use select(), we can just as well include it here */ #include #endif -#ifdef HAVE_UNISTD_H -/* at least somewhat oldish FreeBSD systems need this for select() */ -#include -#endif #ifdef TPF # include "select.h" -- cgit v1.2.3