diff options
Diffstat (limited to 'src/examples/http_chunked_compression.c')
-rw-r--r-- | src/examples/http_chunked_compression.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/examples/http_chunked_compression.c b/src/examples/http_chunked_compression.c index f6baf0fd..7b8ed1fc 100644 --- a/src/examples/http_chunked_compression.c +++ b/src/examples/http_chunked_compression.c | |||
@@ -156,7 +156,7 @@ free_cb (void *cls) | |||
156 | static enum MHD_Result | 156 | static enum MHD_Result |
157 | ahc_echo (void *cls, struct MHD_Connection *con, const char *url, const | 157 | ahc_echo (void *cls, struct MHD_Connection *con, const char *url, const |
158 | char *method, const char *version, | 158 | char *method, const char *version, |
159 | const char *upload_data, size_t *upload_size, void **ptr) | 159 | const char *upload_data, size_t *upload_size, void **req_cls) |
160 | { | 160 | { |
161 | struct Holder *holder; | 161 | struct Holder *holder; |
162 | struct MHD_Response *res; | 162 | struct MHD_Response *res; |
@@ -167,12 +167,12 @@ ahc_echo (void *cls, struct MHD_Connection *con, const char *url, const | |||
167 | (void) version; | 167 | (void) version; |
168 | (void) upload_data; | 168 | (void) upload_data; |
169 | (void) upload_size; | 169 | (void) upload_size; |
170 | if (NULL == *ptr) | 170 | if (NULL == *req_cls) |
171 | { | 171 | { |
172 | *ptr = (void *) 1; | 172 | *req_cls = (void *) 1; |
173 | return MHD_YES; | 173 | return MHD_YES; |
174 | } | 174 | } |
175 | *ptr = NULL; | 175 | *req_cls = NULL; |
176 | holder = calloc (1, sizeof (struct Holder)); | 176 | holder = calloc (1, sizeof (struct Holder)); |
177 | if (! holder) | 177 | if (! holder) |
178 | return MHD_NO; | 178 | return MHD_NO; |