aboutsummaryrefslogtreecommitdiff
path: root/doc/examples/largepost.c
diff options
context:
space:
mode:
Diffstat (limited to 'doc/examples/largepost.c')
-rw-r--r--doc/examples/largepost.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/examples/largepost.c b/doc/examples/largepost.c
index dc685745..58649508 100644
--- a/doc/examples/largepost.c
+++ b/doc/examples/largepost.c
@@ -181,10 +181,10 @@ iterate_post (void *coninfo_cls,
181static void 181static void
182request_completed (void *cls, 182request_completed (void *cls,
183 struct MHD_Connection *connection, 183 struct MHD_Connection *connection,
184 void **con_cls, 184 void **req_cls,
185 enum MHD_RequestTerminationCode toe) 185 enum MHD_RequestTerminationCode toe)
186{ 186{
187 struct connection_info_struct *con_info = *con_cls; 187 struct connection_info_struct *con_info = *req_cls;
188 (void) cls; /* Unused. Silent compiler warning. */ 188 (void) cls; /* Unused. Silent compiler warning. */
189 (void) connection; /* Unused. Silent compiler warning. */ 189 (void) connection; /* Unused. Silent compiler warning. */
190 (void) toe; /* Unused. Silent compiler warning. */ 190 (void) toe; /* Unused. Silent compiler warning. */
@@ -205,7 +205,7 @@ request_completed (void *cls,
205 } 205 }
206 206
207 free (con_info); 207 free (con_info);
208 *con_cls = NULL; 208 *req_cls = NULL;
209} 209}
210 210
211 211
@@ -217,13 +217,13 @@ answer_to_connection (void *cls,
217 const char *version, 217 const char *version,
218 const char *upload_data, 218 const char *upload_data,
219 size_t *upload_data_size, 219 size_t *upload_data_size,
220 void **con_cls) 220 void **req_cls)
221{ 221{
222 (void) cls; /* Unused. Silent compiler warning. */ 222 (void) cls; /* Unused. Silent compiler warning. */
223 (void) url; /* Unused. Silent compiler warning. */ 223 (void) url; /* Unused. Silent compiler warning. */
224 (void) version; /* Unused. Silent compiler warning. */ 224 (void) version; /* Unused. Silent compiler warning. */
225 225
226 if (NULL == *con_cls) 226 if (NULL == *req_cls)
227 { 227 {
228 /* First call, setup data structures */ 228 /* First call, setup data structures */
229 struct connection_info_struct *con_info; 229 struct connection_info_struct *con_info;
@@ -262,7 +262,7 @@ answer_to_connection (void *cls,
262 con_info->connectiontype = GET; 262 con_info->connectiontype = GET;
263 } 263 }
264 264
265 *con_cls = (void *) con_info; 265 *req_cls = (void *) con_info;
266 266
267 return MHD_YES; 267 return MHD_YES;
268 } 268 }
@@ -283,7 +283,7 @@ answer_to_connection (void *cls,
283 283
284 if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST)) 284 if (0 == strcasecmp (method, MHD_HTTP_METHOD_POST))
285 { 285 {
286 struct connection_info_struct *con_info = *con_cls; 286 struct connection_info_struct *con_info = *req_cls;
287 287
288 if (0 != *upload_data_size) 288 if (0 != *upload_data_size)
289 { 289 {