s3-msg: Rename msg_channel_init_destructor
authorVolker Lendecke <vl@samba.org>
Fri, 10 Aug 2012 12:54:37 +0000 (14:54 +0200)
committerChristian Ambach <ambi@samba.org>
Thu, 16 Aug 2012 16:05:34 +0000 (18:05 +0200)
Signed-off-by: Christian Ambach <ambi@samba.org>
source3/lib/msg_channel.c

index 6b3295fc06d9aa58ccf20620757823520617493f..2b02f563e7671b20987b3fae80fb97d3e8eeb5d3 100644 (file)
@@ -44,7 +44,7 @@ static void msg_channel_init_got_msg(struct messaging_context *msg,
 static void msg_channel_trigger(struct tevent_context *ev,
                                struct tevent_immediate *im,
                                void *priv);
-static int msg_channel_init_destructor(struct msg_channel *s);
+static int msg_channel_destructor(struct msg_channel *s);
 
 struct tevent_req *msg_channel_init_send(TALLOC_CTX *mem_ctx,
                                    struct tevent_context *ev,
@@ -105,11 +105,11 @@ static void msg_channel_init_got_ctdb(struct tevent_req *subreq)
                tevent_req_error(req, map_errno_from_nt_status(status));
                return;
        }
-       talloc_set_destructor(s, msg_channel_init_destructor);
+       talloc_set_destructor(s, msg_channel_destructor);
        tevent_req_done(req);
 }
 
-static int msg_channel_init_destructor(struct msg_channel *s)
+static int msg_channel_destructor(struct msg_channel *s)
 {
        messaging_deregister(s->msg, s->msg_type, s);
        return 0;