From 2416984b4006b3fb8a323addb0fae127dea85f7a Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 24 May 2015 21:25:56 +0200 Subject: [PATCH] messaging: Make messaging_dispatch_rec static It's not needed in ctdbd_conn.c anymore Signed-off-by: Volker Lendecke Reviewed-by: Stefan Metzmacher --- source3/include/messages.h | 2 -- source3/lib/messages.c | 7 +++++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/source3/include/messages.h b/source3/include/messages.h index 6b5e3da71ea..c620f92c6ec 100644 --- a/source3/include/messages.h +++ b/source3/include/messages.h @@ -132,8 +132,6 @@ NTSTATUS messaging_send_iov(struct messaging_context *msg_ctx, struct server_id server, uint32_t msg_type, const struct iovec *iov, int iovlen, const int *fds, size_t num_fds); -void messaging_dispatch_rec(struct messaging_context *msg_ctx, - struct messaging_rec *rec); struct tevent_req *messaging_filtered_read_send( TALLOC_CTX *mem_ctx, struct tevent_context *ev, diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 6cc5275e9e6..26e5b011f5c 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -83,6 +83,9 @@ struct messaging_context { struct server_id_db *names_db; }; +static void messaging_dispatch_rec(struct messaging_context *msg_ctx, + struct messaging_rec *rec); + /**************************************************************************** A useful function for testing the message system. ****************************************************************************/ @@ -923,8 +926,8 @@ static bool messaging_append_new_waiters(struct messaging_context *msg_ctx) /* Dispatch one messaging_rec */ -void messaging_dispatch_rec(struct messaging_context *msg_ctx, - struct messaging_rec *rec) +static void messaging_dispatch_rec(struct messaging_context *msg_ctx, + struct messaging_rec *rec) { struct messaging_callback *cb, *next; unsigned i; -- 2.47.3