messaging: Make messaging_dispatch_rec static
authorVolker Lendecke <vl@samba.org>
Sun, 24 May 2015 19:25:56 +0000 (21:25 +0200)
committerVolker Lendecke <vl@samba.org>
Thu, 28 May 2015 09:13:09 +0000 (11:13 +0200)
It's not needed in ctdbd_conn.c anymore

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/include/messages.h
source3/lib/messages.c

index 6b5e3da71ea001ce0fb6a015119621a8073d34ee..c620f92c6ec7d0e3122f30a5e88a9bfb27cbb4c9 100644 (file)
@@ -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,
index 6cc5275e9e69ada9e46e61ff4408c9b3f57d4f98..26e5b011f5cfab8fb570f47f9dda31d9227d3e9a 100644 (file)
@@ -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;