diff options
Diffstat (limited to 'src/testzzuf/test_post_form.c')
-rw-r--r-- | src/testzzuf/test_post_form.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testzzuf/test_post_form.c b/src/testzzuf/test_post_form.c index d5a65b77..9538f3ca 100644 --- a/src/testzzuf/test_post_form.c +++ b/src/testzzuf/test_post_form.c | |||
@@ -52,15 +52,15 @@ struct CBC | |||
52 | static void | 52 | static void |
53 | completed_cb (void *cls, | 53 | completed_cb (void *cls, |
54 | struct MHD_Connection *connection, | 54 | struct MHD_Connection *connection, |
55 | void **con_cls, | 55 | void **req_cls, |
56 | enum MHD_RequestTerminationCode toe) | 56 | enum MHD_RequestTerminationCode toe) |
57 | { | 57 | { |
58 | struct MHD_PostProcessor *pp = *con_cls; | 58 | struct MHD_PostProcessor *pp = *req_cls; |
59 | (void) cls; (void) connection; (void) toe; /* Unused. Silent compiler warning. */ | 59 | (void) cls; (void) connection; (void) toe; /* Unused. Silent compiler warning. */ |
60 | 60 | ||
61 | if (NULL != pp) | 61 | if (NULL != pp) |
62 | MHD_destroy_post_processor (pp); | 62 | MHD_destroy_post_processor (pp); |
63 | *con_cls = NULL; | 63 | *req_cls = NULL; |
64 | } | 64 | } |
65 | 65 | ||
66 | 66 | ||
@@ -117,7 +117,7 @@ ahc_echo (void *cls, | |||
117 | const char *method, | 117 | const char *method, |
118 | const char *version, | 118 | const char *version, |
119 | const char *upload_data, size_t *upload_data_size, | 119 | const char *upload_data, size_t *upload_data_size, |
120 | void **unused) | 120 | void **req_cls) |
121 | { | 121 | { |
122 | static int eok; | 122 | static int eok; |
123 | struct MHD_Response *response; | 123 | struct MHD_Response *response; |
@@ -139,14 +139,14 @@ ahc_echo (void *cls, | |||
139 | { | 139 | { |
140 | return MHD_NO; /* unexpected method */ | 140 | return MHD_NO; /* unexpected method */ |
141 | } | 141 | } |
142 | pp = *unused; | 142 | pp = *req_cls; |
143 | if (pp == NULL) | 143 | if (pp == NULL) |
144 | { | 144 | { |
145 | eok = 0; | 145 | eok = 0; |
146 | pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); | 146 | pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); |
147 | if (pp == NULL) | 147 | if (pp == NULL) |
148 | return MHD_NO; | 148 | return MHD_NO; |
149 | *unused = pp; | 149 | *req_cls = pp; |
150 | } | 150 | } |
151 | MHD_post_process (pp, upload_data, *upload_data_size); | 151 | MHD_post_process (pp, upload_data, *upload_data_size); |
152 | if ((eok == 3) && (0 == *upload_data_size)) | 152 | if ((eok == 3) && (0 == *upload_data_size)) |
@@ -157,7 +157,7 @@ ahc_echo (void *cls, | |||
157 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 157 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
158 | MHD_destroy_response (response); | 158 | MHD_destroy_response (response); |
159 | MHD_destroy_post_processor (pp); | 159 | MHD_destroy_post_processor (pp); |
160 | *unused = NULL; | 160 | *req_cls = NULL; |
161 | return ret; | 161 | return ret; |
162 | } | 162 | } |
163 | *upload_data_size = 0; | 163 | *upload_data_size = 0; |