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