diff options
Diffstat (limited to 'src/testcurl/test_get_empty.c')
-rw-r--r-- | src/testcurl/test_get_empty.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/testcurl/test_get_empty.c b/src/testcurl/test_get_empty.c index 5ed71ab9..fdbb2d42 100644 --- a/src/testcurl/test_get_empty.c +++ b/src/testcurl/test_get_empty.c | |||
@@ -107,7 +107,7 @@ ahc_echo (void *cls, | |||
107 | const char *method, | 107 | const char *method, |
108 | const char *version, | 108 | const char *version, |
109 | const char *upload_data, size_t *upload_data_size, | 109 | const char *upload_data, size_t *upload_data_size, |
110 | void **unused) | 110 | void **req_cls) |
111 | { | 111 | { |
112 | static int ptr; | 112 | static int ptr; |
113 | const char *me = cls; | 113 | const char *me = cls; |
@@ -119,12 +119,12 @@ ahc_echo (void *cls, | |||
119 | 119 | ||
120 | if (0 != strcmp (me, method)) | 120 | if (0 != strcmp (me, method)) |
121 | return MHD_NO; /* unexpected method */ | 121 | return MHD_NO; /* unexpected method */ |
122 | if (&ptr != *unused) | 122 | if (&ptr != *req_cls) |
123 | { | 123 | { |
124 | *unused = &ptr; | 124 | *req_cls = &ptr; |
125 | return MHD_YES; | 125 | return MHD_YES; |
126 | } | 126 | } |
127 | *unused = NULL; | 127 | *req_cls = NULL; |
128 | response = MHD_create_response_from_buffer (0, | 128 | response = MHD_create_response_from_buffer (0, |
129 | NULL, | 129 | NULL, |
130 | MHD_RESPMEM_PERSISTENT); | 130 | MHD_RESPMEM_PERSISTENT); |
@@ -703,7 +703,7 @@ ahc_empty (void *cls, | |||
703 | const char *method, | 703 | const char *method, |
704 | const char *version, | 704 | const char *version, |
705 | const char *upload_data, size_t *upload_data_size, | 705 | const char *upload_data, size_t *upload_data_size, |
706 | void **unused) | 706 | void **req_cls) |
707 | { | 707 | { |
708 | static int ptr; | 708 | static int ptr; |
709 | struct MHD_Response *response; | 709 | struct MHD_Response *response; |
@@ -717,12 +717,12 @@ ahc_empty (void *cls, | |||
717 | 717 | ||
718 | if (0 != strcmp ("GET", method)) | 718 | if (0 != strcmp ("GET", method)) |
719 | return MHD_NO; /* unexpected method */ | 719 | return MHD_NO; /* unexpected method */ |
720 | if (&ptr != *unused) | 720 | if (&ptr != *req_cls) |
721 | { | 721 | { |
722 | *unused = &ptr; | 722 | *req_cls = &ptr; |
723 | return MHD_YES; | 723 | return MHD_YES; |
724 | } | 724 | } |
725 | *unused = NULL; | 725 | *req_cls = NULL; |
726 | response = MHD_create_response_from_buffer (0, | 726 | response = MHD_create_response_from_buffer (0, |
727 | NULL, | 727 | NULL, |
728 | MHD_RESPMEM_PERSISTENT); | 728 | MHD_RESPMEM_PERSISTENT); |