summaryrefslogtreecommitdiff
path: root/source4/torture/local
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-26 22:45:33 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:04:48 -0500
commit05ad898f68a2df1b102af95fdba0704479bde073 (patch)
treeaf679adf134a1e271701466d4101ca15571405e2 /source4/torture/local
parent3b5c992481d510adbafba73f737360ebb21e3540 (diff)
downloadsamba-05ad898f68a2df1b102af95fdba0704479bde073.tar.gz
samba-05ad898f68a2df1b102af95fdba0704479bde073.tar.bz2
samba-05ad898f68a2df1b102af95fdba0704479bde073.zip
r3271: use "struct messaging_context *" instead of "void *" in messaging API
(This used to be commit cc93813e4a09c538ad485dc2b3cb4c9be34f3d18)
Diffstat (limited to 'source4/torture/local')
-rw-r--r--source4/torture/local/messaging.c12
1 files changed, 6 insertions, 6 deletions
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);