diff options
Diffstat (limited to 'src/testcurl/test_long_header.c')
-rw-r--r-- | src/testcurl/test_long_header.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/testcurl/test_long_header.c b/src/testcurl/test_long_header.c index 01d62d11..17d8904b 100644 --- a/src/testcurl/test_long_header.c +++ b/src/testcurl/test_long_header.c | |||
@@ -53,6 +53,7 @@ apc_all (void *cls, const struct sockaddr *addr, socklen_t addrlen) | |||
53 | return MHD_YES; | 53 | return MHD_YES; |
54 | } | 54 | } |
55 | 55 | ||
56 | |||
56 | struct CBC | 57 | struct CBC |
57 | { | 58 | { |
58 | char *buf; | 59 | char *buf; |
@@ -67,6 +68,7 @@ copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) | |||
67 | return size * nmemb; | 68 | return size * nmemb; |
68 | } | 69 | } |
69 | 70 | ||
71 | |||
70 | static int | 72 | static int |
71 | ahc_echo (void *cls, | 73 | ahc_echo (void *cls, |
72 | struct MHD_Connection *connection, | 74 | struct MHD_Connection *connection, |
@@ -130,7 +132,7 @@ testLongUrlGet (size_t buff_size) | |||
130 | { | 132 | { |
131 | const union MHD_DaemonInfo *dinfo; | 133 | const union MHD_DaemonInfo *dinfo; |
132 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); | 134 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); |
133 | if ((NULL == dinfo) ||(0 == dinfo->port) ) | 135 | if ((NULL == dinfo) || (0 == dinfo->port) ) |
134 | { | 136 | { |
135 | MHD_stop_daemon (d); return 32; | 137 | MHD_stop_daemon (d); return 32; |
136 | } | 138 | } |
@@ -223,7 +225,7 @@ testLongHeaderGet (size_t buff_size) | |||
223 | { | 225 | { |
224 | const union MHD_DaemonInfo *dinfo; | 226 | const union MHD_DaemonInfo *dinfo; |
225 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); | 227 | dinfo = MHD_get_daemon_info (d, MHD_DAEMON_INFO_BIND_PORT); |
226 | if ((NULL == dinfo) ||(0 == dinfo->port) ) | 228 | if ((NULL == dinfo) || (0 == dinfo->port) ) |
227 | { | 229 | { |
228 | MHD_stop_daemon (d); return 32; | 230 | MHD_stop_daemon (d); return 32; |
229 | } | 231 | } |
@@ -283,13 +285,14 @@ testLongHeaderGet (size_t buff_size) | |||
283 | return 0; | 285 | return 0; |
284 | } | 286 | } |
285 | 287 | ||
288 | |||
286 | int | 289 | int |
287 | main (int argc, char *const *argv) | 290 | main (int argc, char *const *argv) |
288 | { | 291 | { |
289 | unsigned int errorCount = 0; | 292 | unsigned int errorCount = 0; |
290 | (void) argc; /* Unused. Silent compiler warning. */ | 293 | (void) argc; /* Unused. Silent compiler warning. */ |
291 | 294 | ||
292 | if ((NULL == argv)||(0 == argv[0])) | 295 | if ((NULL == argv) || (0 == argv[0])) |
293 | return 99; | 296 | return 99; |
294 | oneone = has_in_name (argv[0], "11"); | 297 | oneone = has_in_name (argv[0], "11"); |
295 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) | 298 | if (0 != curl_global_init (CURL_GLOBAL_WIN32)) |