diff options
Diffstat (limited to 'src/testzzuf/test_post.c')
-rw-r--r-- | src/testzzuf/test_post.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/testzzuf/test_post.c b/src/testzzuf/test_post.c index bf1416da..0b184467 100644 --- a/src/testzzuf/test_post.c +++ b/src/testzzuf/test_post.c | |||
@@ -54,15 +54,15 @@ struct CBC | |||
54 | static void | 54 | static void |
55 | completed_cb (void *cls, | 55 | completed_cb (void *cls, |
56 | struct MHD_Connection *connection, | 56 | struct MHD_Connection *connection, |
57 | void **con_cls, | 57 | void **req_cls, |
58 | enum MHD_RequestTerminationCode toe) | 58 | enum MHD_RequestTerminationCode toe) |
59 | { | 59 | { |
60 | struct MHD_PostProcessor *pp = *con_cls; | 60 | struct MHD_PostProcessor *pp = *req_cls; |
61 | (void) cls; (void) connection; (void) toe; /* Unused. Silent compiler warning. */ | 61 | (void) cls; (void) connection; (void) toe; /* Unused. Silent compiler warning. */ |
62 | 62 | ||
63 | if (NULL != pp) | 63 | if (NULL != pp) |
64 | MHD_destroy_post_processor (pp); | 64 | MHD_destroy_post_processor (pp); |
65 | *con_cls = NULL; | 65 | *req_cls = NULL; |
66 | } | 66 | } |
67 | 67 | ||
68 | 68 | ||
@@ -114,7 +114,7 @@ ahc_echo (void *cls, | |||
114 | const char *method, | 114 | const char *method, |
115 | const char *version, | 115 | const char *version, |
116 | const char *upload_data, size_t *upload_data_size, | 116 | const char *upload_data, size_t *upload_data_size, |
117 | void **unused) | 117 | void **req_cls) |
118 | { | 118 | { |
119 | static int eok; | 119 | static int eok; |
120 | struct MHD_Response *response; | 120 | struct MHD_Response *response; |
@@ -136,12 +136,12 @@ ahc_echo (void *cls, | |||
136 | { | 136 | { |
137 | return MHD_NO; /* unexpected method */ | 137 | return MHD_NO; /* unexpected method */ |
138 | } | 138 | } |
139 | pp = *unused; | 139 | pp = *req_cls; |
140 | if (pp == NULL) | 140 | if (pp == NULL) |
141 | { | 141 | { |
142 | eok = 0; | 142 | eok = 0; |
143 | pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); | 143 | pp = MHD_create_post_processor (connection, 1024, &post_iterator, &eok); |
144 | *unused = pp; | 144 | *req_cls = pp; |
145 | } | 145 | } |
146 | MHD_post_process (pp, upload_data, *upload_data_size); | 146 | MHD_post_process (pp, upload_data, *upload_data_size); |
147 | if ((eok == 3) && (0 == *upload_data_size)) | 147 | if ((eok == 3) && (0 == *upload_data_size)) |
@@ -152,7 +152,7 @@ ahc_echo (void *cls, | |||
152 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); | 152 | ret = MHD_queue_response (connection, MHD_HTTP_OK, response); |
153 | MHD_destroy_response (response); | 153 | MHD_destroy_response (response); |
154 | MHD_destroy_post_processor (pp); | 154 | MHD_destroy_post_processor (pp); |
155 | *unused = NULL; | 155 | *req_cls = NULL; |
156 | return ret; | 156 | return ret; |
157 | } | 157 | } |
158 | *upload_data_size = 0; | 158 | *upload_data_size = 0; |