aboutsummaryrefslogtreecommitdiff
path: root/src/examples/post_example.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/examples/post_example.c')
-rw-r--r--src/examples/post_example.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/examples/post_example.c b/src/examples/post_example.c
index 2d83e0a4..8b92956d 100644
--- a/src/examples/post_example.c
+++ b/src/examples/post_example.c
@@ -315,6 +315,7 @@ fill_v1_form (const void *cls,
315 int ret; 315 int ret;
316 char *reply; 316 char *reply;
317 struct MHD_Response *response; 317 struct MHD_Response *response;
318 (void)cls; /* Unused. Silent compiler warning. */
318 319
319 reply = malloc (strlen (MAIN_PAGE) + strlen (session->value_1) + 1); 320 reply = malloc (strlen (MAIN_PAGE) + strlen (session->value_1) + 1);
320 if (NULL == reply) 321 if (NULL == reply)
@@ -358,6 +359,7 @@ fill_v1_v2_form (const void *cls,
358 int ret; 359 int ret;
359 char *reply; 360 char *reply;
360 struct MHD_Response *response; 361 struct MHD_Response *response;
362 (void)cls; /* Unused. Silent compiler warning. */
361 363
362 reply = malloc (strlen (SECOND_PAGE) + strlen (session->value_1) + strlen (session->value_2) + 1); 364 reply = malloc (strlen (SECOND_PAGE) + strlen (session->value_1) + strlen (session->value_2) + 1);
363 if (NULL == reply) 365 if (NULL == reply)
@@ -401,6 +403,8 @@ not_found_page (const void *cls,
401{ 403{
402 int ret; 404 int ret;
403 struct MHD_Response *response; 405 struct MHD_Response *response;
406 (void)cls; /* Unused. Silent compiler warning. */
407 (void)session; /* Unused. Silent compiler warning. */
404 408
405 /* unsupported HTTP method */ 409 /* unsupported HTTP method */
406 response = MHD_create_response_from_buffer (strlen (NOT_FOUND_ERROR), 410 response = MHD_create_response_from_buffer (strlen (NOT_FOUND_ERROR),
@@ -463,6 +467,10 @@ post_iterator (void *cls,
463{ 467{
464 struct Request *request = cls; 468 struct Request *request = cls;
465 struct Session *session = request->session; 469 struct Session *session = request->session;
470 (void)kind; /* Unused. Silent compiler warning. */
471 (void)filename; /* Unused. Silent compiler warning. */
472 (void)content_type; /* Unused. Silent compiler warning. */
473 (void)transfer_encoding; /* Unused. Silent compiler warning. */
466 474
467 if (0 == strcmp ("DONE", key)) 475 if (0 == strcmp ("DONE", key))
468 { 476 {
@@ -548,6 +556,8 @@ create_response (void *cls,
548 struct Session *session; 556 struct Session *session;
549 int ret; 557 int ret;
550 unsigned int i; 558 unsigned int i;
559 (void)cls; /* Unused. Silent compiler warning. */
560 (void)version; /* Unused. Silent compiler warning. */
551 561
552 request = *ptr; 562 request = *ptr;
553 if (NULL == request) 563 if (NULL == request)
@@ -647,6 +657,9 @@ request_completed_callback (void *cls,
647 enum MHD_RequestTerminationCode toe) 657 enum MHD_RequestTerminationCode toe)
648{ 658{
649 struct Request *request = *con_cls; 659 struct Request *request = *con_cls;
660 (void)cls; /* Unused. Silent compiler warning. */
661 (void)connection; /* Unused. Silent compiler warning. */
662 (void)toe; /* Unused. Silent compiler warning. */
650 663
651 if (NULL == request) 664 if (NULL == request)
652 return; 665 return;