diff options
author | Yang Tse <yangsita@gmail.com> | 2011-07-26 19:42:16 +0200 |
---|---|---|
committer | Yang Tse <yangsita@gmail.com> | 2011-07-26 19:42:16 +0200 |
commit | 78bbd0eecff23203dd8a1aa2dd76143af9a90b7b (patch) | |
tree | 7012069d3acc2b88a1ba09bc202fb3a4eb454fc6 /tests | |
parent | f1586cb4775681810afd8e6626e7842d459f3b85 (diff) |
fix compiler warning
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libtest/lib540.c | 3 | ||||
-rw-r--r-- | tests/libtest/lib560.c | 5 | ||||
-rw-r--r-- | tests/server/fake_ntlm.c | 12 |
3 files changed, 13 insertions, 7 deletions
diff --git a/tests/libtest/lib540.c b/tests/libtest/lib540.c index 6647ab399..8fb409f07 100644 --- a/tests/libtest/lib540.c +++ b/tests/libtest/lib540.c @@ -76,7 +76,6 @@ static int loop(CURLM *cm, const char* url, const char* userpwd, struct curl_slist *headers) { CURLMsg *msg; - CURLMcode code; long L; int M, Q, U = -1; fd_set R, W, E; @@ -87,7 +86,7 @@ static int loop(CURLM *cm, const char* url, const char* userpwd, while (U) { - code = curl_multi_perform(cm, &U); + (void) curl_multi_perform(cm, &U); if (U) { FD_ZERO(&R); diff --git a/tests/libtest/lib560.c b/tests/libtest/lib560.c index 851d5d193..a91d863ab 100644 --- a/tests/libtest/lib560.c +++ b/tests/libtest/lib560.c @@ -37,7 +37,6 @@ int test(char *URL) { CURL *http_handle; CURLM *multi_handle = NULL; - CURLMcode code; int res; int still_running; /* keep number of running handles */ @@ -63,7 +62,7 @@ int test(char *URL) curl_multi_add_handle(multi_handle, http_handle); /* we start some action by calling perform right away */ - code = curl_multi_perform(multi_handle, &still_running); + (void) curl_multi_perform(multi_handle, &still_running); while(still_running) { struct timeval timeout; @@ -98,7 +97,7 @@ int test(char *URL) case 0: default: /* timeout or readable/writable sockets */ - code = curl_multi_perform(multi_handle, &still_running); + (void) curl_multi_perform(multi_handle, &still_running); break; } } diff --git a/tests/server/fake_ntlm.c b/tests/server/fake_ntlm.c index 624ec6b1c..de7110636 100644 --- a/tests/server/fake_ntlm.c +++ b/tests/server/fake_ntlm.c @@ -27,14 +27,22 @@ * responses with a pre-written string saved in test case test2005. */ -#include <stdio.h> -#include <errno.h> +#define CURL_NO_OLDIES + +#include "setup.h" + +#ifdef HAVE_UNISTD_H #include <unistd.h> +#endif +#define ENABLE_CURLX_PRINTF #include "curlx.h" /* from the private lib dir */ #include "getpart.h" #include "util.h" +/* include memdebug.h last */ +#include "memdebug.h" + #ifndef DEFAULT_LOGFILE #define DEFAULT_LOGFILE "log/fake_ntlm.log" #endif |