diff options
Diffstat (limited to 'src/daemon/daemontest_get.c')
-rw-r--r-- | src/daemon/daemontest_get.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/daemon/daemontest_get.c b/src/daemon/daemontest_get.c index 01612dfa..f5ef084f 100644 --- a/src/daemon/daemontest_get.c +++ b/src/daemon/daemontest_get.c | |||
@@ -112,9 +112,9 @@ testInternalGet () | |||
112 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 112 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
113 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 113 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
114 | { | 114 | { |
115 | fprintf(stderr, | 115 | fprintf (stderr, |
116 | "curl_easy_perform failed: `%s'\n", | 116 | "curl_easy_perform failed: `%s'\n", |
117 | curl_easy_strerror(errornum)); | 117 | curl_easy_strerror (errornum)); |
118 | curl_easy_cleanup (c); | 118 | curl_easy_cleanup (c); |
119 | MHD_stop_daemon (d); | 119 | MHD_stop_daemon (d); |
120 | return 2; | 120 | return 2; |
@@ -169,9 +169,9 @@ testMultithreadedGet () | |||
169 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); | 169 | curl_easy_setopt (c, CURLOPT_NOSIGNAL, 1); |
170 | if (CURLE_OK != (errornum = curl_easy_perform (c))) | 170 | if (CURLE_OK != (errornum = curl_easy_perform (c))) |
171 | { | 171 | { |
172 | fprintf(stderr, | 172 | fprintf (stderr, |
173 | "curl_easy_perform failed: `%s'\n", | 173 | "curl_easy_perform failed: `%s'\n", |
174 | curl_easy_strerror(errornum)); | 174 | curl_easy_strerror (errornum)); |
175 | curl_easy_cleanup (c); | 175 | curl_easy_cleanup (c); |
176 | MHD_stop_daemon (d); | 176 | MHD_stop_daemon (d); |
177 | return 32; | 177 | return 32; |
@@ -321,13 +321,11 @@ int | |||
321 | main (int argc, char *const *argv) | 321 | main (int argc, char *const *argv) |
322 | { | 322 | { |
323 | unsigned int errorCount = 0; | 323 | unsigned int errorCount = 0; |
324 | // int i; | ||
325 | 324 | ||
326 | oneone = NULL != strstr (argv[0], "11"); | 325 | oneone = NULL != strstr (argv[0], "11"); |
327 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 326 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |
328 | return 2; | 327 | return 2; |
329 | errorCount += testInternalGet (); | 328 | errorCount += testInternalGet (); |
330 | // for (i=0;i<10000;i++) | ||
331 | errorCount += testMultithreadedGet (); | 329 | errorCount += testMultithreadedGet (); |
332 | errorCount += testExternalGet (); | 330 | errorCount += testExternalGet (); |
333 | if (errorCount != 0) | 331 | if (errorCount != 0) |