From: Aki Tuomi Date: Sun, 22 Jan 2017 15:58:55 +0000 (+0200) Subject: global: Update http_client_request_set_destroy_callback usage X-Git-Tag: 2.3.0.rc1~2272 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8b65acb3893f124707c0f64b5ef55a5a1e0fbd02;p=thirdparty%2Fdovecot%2Fcore.git global: Update http_client_request_set_destroy_callback usage --- diff --git a/src/auth/auth-policy.c b/src/auth/auth-policy.c index 796950170b..ac804fe3ba 100755 --- a/src/auth/auth-policy.c +++ b/src/auth/auth-policy.c @@ -230,10 +230,8 @@ void auth_policy_deinit(void) } static -void auth_policy_finish(void *ctx) +void auth_policy_finish(struct policy_lookup_ctx *context) { - struct policy_lookup_ctx *context = ctx; - if (context->parser != NULL) { const char *error ATTR_UNUSED; (void)json_parser_deinit(&(context->parser), &error); diff --git a/src/lib-http/test-http-payload.c b/src/lib-http/test-http-payload.c index 0763496370..508bb243ea 100644 --- a/src/lib-http/test-http-payload.c +++ b/src/lib-http/test-http-payload.c @@ -607,11 +607,8 @@ test_client_request_new(void) } static void -test_client_request_destroy(void *context) +test_client_request_destroy(struct test_client_request *tcreq) { - struct test_client_request *tcreq = - (struct test_client_request *)context; - if (tcreq->io != NULL) io_remove(&tcreq->io); if (tcreq->payload != NULL)