aboutsummaryrefslogtreecommitdiff
path: root/src/testcurl/test_urlparse.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r--src/testcurl/test_urlparse.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c
index 71ac668b..18c6ab37 100644
--- a/src/testcurl/test_urlparse.c
+++ b/src/testcurl/test_urlparse.c
@@ -128,15 +128,15 @@ ahc_echo (void *cls,
128} 128}
129 129
130 130
131static int 131static unsigned int
132testInternalGet (int poll_flag) 132testInternalGet (uint32_t poll_flag)
133{ 133{
134 struct MHD_Daemon *d; 134 struct MHD_Daemon *d;
135 CURL *c; 135 CURL *c;
136 char buf[2048]; 136 char buf[2048];
137 struct CBC cbc; 137 struct CBC cbc;
138 CURLcode errornum; 138 CURLcode errornum;
139 int port; 139 uint16_t port;
140 140
141 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT)) 141 if (MHD_NO != MHD_is_feature_supported (MHD_FEATURE_AUTODETECT_BIND_PORT))
142 port = 0; 142 port = 0;
@@ -151,7 +151,7 @@ testInternalGet (int poll_flag)
151 cbc.size = 2048; 151 cbc.size = 2048;
152 cbc.pos = 0; 152 cbc.pos = 0;
153 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG 153 d = MHD_start_daemon (MHD_USE_INTERNAL_POLLING_THREAD | MHD_USE_ERROR_LOG
154 | poll_flag, 154 | (enum MHD_FLAG) poll_flag,
155 port, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END); 155 port, NULL, NULL, &ahc_echo, NULL, MHD_OPTION_END);
156 if (d == NULL) 156 if (d == NULL)
157 return 1; 157 return 1;
@@ -163,7 +163,7 @@ testInternalGet (int poll_flag)
163 { 163 {
164 MHD_stop_daemon (d); return 32; 164 MHD_stop_daemon (d); return 32;
165 } 165 }
166 port = (int) dinfo->port; 166 port = dinfo->port;
167 } 167 }
168 c = curl_easy_init (); 168 c = curl_easy_init ();
169 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world?a=b&c=&d"); 169 curl_easy_setopt (c, CURLOPT_URL, "http://127.0.0.1/hello_world?a=b&c=&d");