]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
global: Update http_client_request_set_destroy_callback usage
authorAki Tuomi <aki.tuomi@dovecot.fi>
Sun, 22 Jan 2017 15:58:55 +0000 (17:58 +0200)
committerGitLab <gitlab@git.dovecot.net>
Tue, 24 Jan 2017 07:43:58 +0000 (09:43 +0200)
src/auth/auth-policy.c
src/lib-http/test-http-payload.c

index 796950170b302275e424f000424c3ee3be26a3b9..ac804fe3ba4008be071509b211f9cce807c8f839 100755 (executable)
@@ -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);
index 0763496370667a9b211bc7d7902343b2149fc209..508bb243ea028c04582e1537f3424a7c80dbfe52 100644 (file)
@@ -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)