Skip to content

Commit

Permalink
global: Update http_server_request_set_destroy_callback usage
Browse files Browse the repository at this point in the history
  • Loading branch information
cmouse committed Jan 24, 2017
1 parent 582b936 commit 5a6d4ad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/doveadm/client-connection-http.c
Expand Up @@ -123,9 +123,8 @@ doveadm_http_server_connection_destroy(void *context, const char *reason ATTR_UN
}

static void
doveadm_http_server_request_destroy(void *context)
doveadm_http_server_request_destroy(struct client_connection_http *conn)
{
struct client_connection_http *conn = context;
struct http_server_response *resp =
http_server_request_get_response(conn->http_server_request);

Expand Down
7 changes: 2 additions & 5 deletions src/lib-http/test-http-payload.c
Expand Up @@ -409,7 +409,7 @@ client_handle_echo_request(struct client_request *creq,
/* request */

static void
http_server_request_destroyed(void *context);
http_server_request_destroyed(struct client_request *creq);

static struct client_request *
client_request_init(struct client *client,
Expand Down Expand Up @@ -446,11 +446,8 @@ static void client_request_deinit(struct client_request **_creq)
}

static void
http_server_request_destroyed(void *context)
http_server_request_destroyed(struct client_request *creq)
{
struct client_request *creq =
(struct client_request *)context;

client_request_deinit(&creq);
}

Expand Down
11 changes: 3 additions & 8 deletions src/lib-http/test-http-server-errors.c
Expand Up @@ -116,9 +116,8 @@ struct _slow_request {
};

static void
test_server_slow_request_destroyed(void *context)
test_server_slow_request_destroyed(struct _slow_request *ctx)
{
struct _slow_request *ctx = (struct _slow_request *)context;
test_assert(ctx->serviced);
if (ctx->to_delay != NULL)
timeout_remove(&ctx->to_delay);
Expand Down Expand Up @@ -220,10 +219,8 @@ struct _hanging_request_payload {
};

static void
test_server_hanging_request_payload_destroyed(void *context)
test_server_hanging_request_payload_destroyed(struct _hanging_request_payload *ctx)
{
struct _hanging_request_payload *ctx =
(struct _hanging_request_payload *)context;
test_assert(!ctx->serviced);
if (ctx->io != NULL)
io_remove(&ctx->io);
Expand Down Expand Up @@ -356,10 +353,8 @@ struct _hanging_response_payload {
};

static void
test_server_hanging_response_payload_destroyed(void *context)
test_server_hanging_response_payload_destroyed(struct _hanging_response_payload *ctx)
{
struct _hanging_response_payload *ctx =
(struct _hanging_response_payload *)context;
test_assert(!ctx->serviced);
if (ctx->io != NULL)
io_remove(&ctx->io);
Expand Down

0 comments on commit 5a6d4ad

Please sign in to comment.