From 05ad898f68a2df1b102af95fdba0704479bde073 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 26 Oct 2004 22:45:33 +0000 Subject: r3271: use "struct messaging_context *" instead of "void *" in messaging API (This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18) --- source4/torture/local/messaging.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'source4/torture/local') diff --git a/source4/torture/local/messaging.c b/source4/torture/local/messaging.c index 38cebb4d39..18c4d9b03f 100644 --- a/source4/torture/local/messaging.c +++ b/source4/torture/local/messaging.c @@ -24,24 +24,24 @@ enum {MY_PING=1000, MY_PONG, MY_EXIT}; -static void ping_message(void *msg_ctx, void *private, +static void ping_message(struct messaging_context *msg, void *private, uint32_t msg_type, servid_t src, DATA_BLOB *data) { NTSTATUS status; - status = messaging_send(msg_ctx, src, MY_PONG, data); + status = messaging_send(msg, src, MY_PONG, data); if (!NT_STATUS_IS_OK(status)) { printf("pong failed - %s\n", nt_errstr(status)); } } -static void pong_message(void *msg_ctx, void *private, +static void pong_message(struct messaging_context *msg, void *private, uint32_t msg_type, servid_t src, DATA_BLOB *data) { int *count = private; (*count)++; } -static void exit_message(void *msg_ctx, void *private, +static void exit_message(struct messaging_context *msg, void *private, uint32_t msg_type, servid_t src, DATA_BLOB *data) { talloc_free(private); @@ -54,13 +54,13 @@ static void exit_message(void *msg_ctx, void *private, static BOOL test_ping_speed(TALLOC_CTX *mem_ctx) { struct event_context *ev = event_context_init(mem_ctx); - void *msg_ctx; + struct messaging_context *msg_ctx; int ping_count = 0; int pong_count = 0; BOOL ret = True; if (fork() == 0) { - void *msg_ctx2 = messaging_init(mem_ctx, 1, ev); + struct messaging_context *msg_ctx2 = messaging_init(mem_ctx, 1, ev); if (!msg_ctx2) { exit(1); -- cgit