diff options
Diffstat (limited to 'src/examples/demo.c')
-rw-r--r-- | src/examples/demo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/examples/demo.c b/src/examples/demo.c index 0b6dc5f9..6ff7adae 100644 --- a/src/examples/demo.c +++ b/src/examples/demo.c | |||
@@ -619,7 +619,7 @@ process_upload_data (void *cls, | |||
619 | * | 619 | * |
620 | * @param cls client-defined closure, NULL | 620 | * @param cls client-defined closure, NULL |
621 | * @param connection connection handle | 621 | * @param connection connection handle |
622 | * @param con_cls value as set by the last call to | 622 | * @param req_cls value as set by the last call to |
623 | * the MHD_AccessHandlerCallback, points to NULL if this was | 623 | * the MHD_AccessHandlerCallback, points to NULL if this was |
624 | * not an upload | 624 | * not an upload |
625 | * @param toe reason for request termination | 625 | * @param toe reason for request termination |
@@ -627,10 +627,10 @@ process_upload_data (void *cls, | |||
627 | static void | 627 | static void |
628 | response_completed_callback (void *cls, | 628 | response_completed_callback (void *cls, |
629 | struct MHD_Connection *connection, | 629 | struct MHD_Connection *connection, |
630 | void **con_cls, | 630 | void **req_cls, |
631 | enum MHD_RequestTerminationCode toe) | 631 | enum MHD_RequestTerminationCode toe) |
632 | { | 632 | { |
633 | struct UploadContext *uc = *con_cls; | 633 | struct UploadContext *uc = *req_cls; |
634 | (void) cls; /* Unused. Silent compiler warning. */ | 634 | (void) cls; /* Unused. Silent compiler warning. */ |
635 | (void) connection; /* Unused. Silent compiler warning. */ | 635 | (void) connection; /* Unused. Silent compiler warning. */ |
636 | (void) toe; /* Unused. Silent compiler warning. */ | 636 | (void) toe; /* Unused. Silent compiler warning. */ |
@@ -694,7 +694,7 @@ return_directory_response (struct MHD_Connection *connection) | |||
694 | * @param version HTTP version | 694 | * @param version HTTP version |
695 | * @param upload_data data from upload (PUT/POST) | 695 | * @param upload_data data from upload (PUT/POST) |
696 | * @param upload_data_size number of bytes in @a upload_data | 696 | * @param upload_data_size number of bytes in @a upload_data |
697 | * @param ptr our context | 697 | * @param req_cls our context |
698 | * @return #MHD_YES on success, #MHD_NO to drop connection | 698 | * @return #MHD_YES on success, #MHD_NO to drop connection |
699 | */ | 699 | */ |
700 | static enum MHD_Result | 700 | static enum MHD_Result |
@@ -704,7 +704,7 @@ generate_page (void *cls, | |||
704 | const char *method, | 704 | const char *method, |
705 | const char *version, | 705 | const char *version, |
706 | const char *upload_data, | 706 | const char *upload_data, |
707 | size_t *upload_data_size, void **ptr) | 707 | size_t *upload_data_size, void **req_cls) |
708 | { | 708 | { |
709 | struct MHD_Response *response; | 709 | struct MHD_Response *response; |
710 | enum MHD_Result ret; | 710 | enum MHD_Result ret; |
@@ -775,7 +775,7 @@ generate_page (void *cls, | |||
775 | if (0 == strcmp (method, MHD_HTTP_METHOD_POST)) | 775 | if (0 == strcmp (method, MHD_HTTP_METHOD_POST)) |
776 | { | 776 | { |
777 | /* upload! */ | 777 | /* upload! */ |
778 | struct UploadContext *uc = *ptr; | 778 | struct UploadContext *uc = *req_cls; |
779 | 779 | ||
780 | if (NULL == uc) | 780 | if (NULL == uc) |
781 | { | 781 | { |
@@ -793,7 +793,7 @@ generate_page (void *cls, | |||
793 | free (uc); | 793 | free (uc); |
794 | return MHD_NO; | 794 | return MHD_NO; |
795 | } | 795 | } |
796 | *ptr = uc; | 796 | *req_cls = uc; |
797 | return MHD_YES; | 797 | return MHD_YES; |
798 | } | 798 | } |
799 | if (0 != *upload_data_size) | 799 | if (0 != *upload_data_size) |