aboutsummaryrefslogtreecommitdiff
path: root/tests/libtest
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2008-09-18 16:21:09 +0000
committerYang Tse <yangsita@gmail.com>2008-09-18 16:21:09 +0000
commita6c915aab98a51b69a77a23ebe1ad8eaf0fd251f (patch)
tree197a1708904aad5274994d0232b0e7edf8fdae01 /tests/libtest
parenta8323cc3f5f3ab0621e14ebf543a870feed2280e (diff)
fix compiler warning: external declaration in primary source file
Diffstat (limited to 'tests/libtest')
-rw-r--r--tests/libtest/first.c3
-rw-r--r--tests/libtest/test.h9
2 files changed, 5 insertions, 7 deletions
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 */