diff options
Diffstat (limited to 'src/testcurl/test_urlparse.c')
-rw-r--r-- | src/testcurl/test_urlparse.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/testcurl/test_urlparse.c b/src/testcurl/test_urlparse.c index bc0411a9..0145b5f1 100644 --- a/src/testcurl/test_urlparse.c +++ b/src/testcurl/test_urlparse.c | |||
@@ -98,7 +98,7 @@ ahc_echo (void *cls, | |||
98 | const char *method, | 98 | const char *method, |
99 | const char *version, | 99 | const char *version, |
100 | const char *upload_data, size_t *upload_data_size, | 100 | const char *upload_data, size_t *upload_data_size, |
101 | void **unused) | 101 | void **req_cls) |
102 | { | 102 | { |
103 | static int ptr; | 103 | static int ptr; |
104 | const char *me = cls; | 104 | const char *me = cls; |
@@ -108,16 +108,16 @@ ahc_echo (void *cls, | |||
108 | 108 | ||
109 | if (0 != strcmp (me, method)) | 109 | if (0 != strcmp (me, method)) |
110 | return MHD_NO; /* unexpected method */ | 110 | return MHD_NO; /* unexpected method */ |
111 | if (&ptr != *unused) | 111 | if (&ptr != *req_cls) |
112 | { | 112 | { |
113 | *unused = &ptr; | 113 | *req_cls = &ptr; |
114 | return MHD_YES; | 114 | return MHD_YES; |
115 | } | 115 | } |
116 | MHD_get_connection_values (connection, | 116 | MHD_get_connection_values (connection, |
117 | MHD_GET_ARGUMENT_KIND, | 117 | MHD_GET_ARGUMENT_KIND, |
118 | &test_values, | 118 | &test_values, |
119 | NULL); | 119 | NULL); |
120 | *unused = NULL; | 120 | *req_cls = NULL; |
121 | response = MHD_create_response_from_buffer (strlen (url), | 121 | response = MHD_create_response_from_buffer (strlen (url), |
122 | (void *) url, | 122 | (void *) url, |
123 | MHD_RESPMEM_MUST_COPY); | 123 | MHD_RESPMEM_MUST_COPY); |