aboutsummaryrefslogtreecommitdiff
path: root/src/daemon/daemontest_get.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2007-08-15 08:59:38 +0000
committerChristian Grothoff <christian@grothoff.org>2007-08-15 08:59:38 +0000
commit2b3429e30ce710904e8af56f1e6098c981359962 (patch)
treeab27fd31f634f5fc4a0dcf52c4c505a08fe359c7 /src/daemon/daemontest_get.c
parentd2ea952b603c504aa54aa8bd390d8b4f74f65502 (diff)
downloadlibmicrohttpd-2b3429e30ce710904e8af56f1e6098c981359962.tar.gz
libmicrohttpd-2b3429e30ce710904e8af56f1e6098c981359962.zip
fix
Diffstat (limited to 'src/daemon/daemontest_get.c')
-rw-r--r--src/daemon/daemontest_get.c14
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
321main (int argc, char *const *argv) 321main (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)