From a6c915aab98a51b69a77a23ebe1ad8eaf0fd251f Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Thu, 18 Sep 2008 16:21:09 +0000 Subject: fix compiler warning: external declaration in primary source file --- tests/libtest/first.c | 3 --- tests/libtest/test.h | 9 +++++---- 2 files changed, 5 insertions(+), 7 deletions(-) (limited to 'tests/libtest') diff --git a/tests/libtest/first.c b/tests/libtest/first.c index a58755c41..d25c7ad28 100644 --- a/tests/libtest/first.c +++ b/tests/libtest/first.c @@ -16,9 +16,6 @@ extern void curl_memdebug(const char *); extern void curl_memlimit(int); #endif -/* test is provided in the test code file */ -int test(char *url); - int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, struct timeval *tv) { diff --git a/tests/libtest/test.h b/tests/libtest/test.h index ef85c346f..b4541c6c4 100644 --- a/tests/libtest/test.h +++ b/tests/libtest/test.h @@ -43,8 +43,9 @@ extern char *libtest_arg3; /* set by first.c to the argv[3] or NULL */ extern int test_argc; extern char **test_argv; -int select_test (int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, - struct timeval *tv); +extern int select_test(int num_fds, fd_set *rd, fd_set *wr, fd_set *exc, + struct timeval *tv); + +extern int test(char *URL); /* the actual test function provided by each + individual libXXX.c file */ -int test(char *URL); /* the actual test function provided by each individual - libXXX.c file */ -- cgit v1.2.3