messaging_dgm: Remove unused "messaging_context"
authorVolker Lendecke <vl@samba.org>
Thu, 17 Jul 2014 09:58:50 +0000 (09:58 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 11 Aug 2014 21:57:12 +0000 (23:57 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/messages.h
source3/lib/messages.c
source3/lib/messages_dgm.c

index 288248350983438e0fa1773d0484f07a4695ee17..669d7f138132a508a8f7be57f0bc70e182ed227e 100644 (file)
@@ -73,8 +73,7 @@ struct messaging_backend {
        void *private_data;
 };
 
-int messaging_dgm_init(struct messaging_context *msg_ctx,
-                      TALLOC_CTX *mem_ctx,
+int messaging_dgm_init(TALLOC_CTX *mem_ctx,
                       struct tevent_context *ev,
                       struct server_id pid,
                       struct messaging_backend **presult,
index ef87ebb6cb5df81d051ae56a0223f9b5ac2c4050..5cb3fdeaa88d8c54ac6cfea7164ea37cd6d40466 100644 (file)
@@ -244,7 +244,7 @@ struct messaging_context *messaging_init(TALLOC_CTX *mem_ctx,
        ctx->event_ctx = ev;
        ctx->have_context = &have_context;
 
-       ret = messaging_dgm_init(ctx, ctx, ctx->event_ctx, ctx->id,
+       ret = messaging_dgm_init(ctx, ctx->event_ctx, ctx->id,
                                 &ctx->local, messaging_recv_cb, ctx);
 
        if (ret != 0) {
@@ -303,7 +303,7 @@ NTSTATUS messaging_reinit(struct messaging_context *msg_ctx)
 
        msg_ctx->id = procid_self();
 
-       ret = messaging_dgm_init(msg_ctx, msg_ctx, msg_ctx->event_ctx,
+       ret = messaging_dgm_init(msg_ctx, msg_ctx->event_ctx,
                                 msg_ctx->id, &msg_ctx->local,
                                 messaging_recv_cb, msg_ctx);
        if (ret != 0) {
index d35c78b4e321bede97669b765dbd2023c98536ce..3fafebdbdece168544dd8e5fbd88b69157b6d0e0 100644 (file)
@@ -29,7 +29,6 @@
 #include "librpc/gen_ndr/messaging.h"
 
 struct messaging_dgm_context {
-       struct messaging_context *msg_ctx;
        struct server_id pid;
        struct poll_funcs *msg_callbacks;
        void *tevent_handle;
@@ -172,8 +171,7 @@ static int messaging_dgm_lockfile_remove(TALLOC_CTX *tmp_ctx,
        return ret;
 }
 
-int messaging_dgm_init(struct messaging_context *msg_ctx,
-                      TALLOC_CTX *mem_ctx,
+int messaging_dgm_init(TALLOC_CTX *mem_ctx,
                       struct tevent_context *ev,
                       struct server_id pid,
                       struct messaging_backend **presult,
@@ -211,7 +209,6 @@ int messaging_dgm_init(struct messaging_context *msg_ctx,
 
        result->private_data = ctx;
        result->send_fn = messaging_dgm_send;
-       ctx->msg_ctx = msg_ctx;
        ctx->pid = pid;
 
        ctx->recv_cb = recv_cb;