From b2af281e508194d9548ea1119c19ee96a0dd1f0a Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 24 Mar 2011 15:31:06 +0100 Subject: s3-messages: only include messages.h where needed. Guenther --- source3/lib/ctdbd_conn.c | 1 + source3/lib/dbwrap_ctdb.c | 1 + source3/lib/dmallocmsg.c | 1 + source3/lib/g_lock.c | 1 + source3/lib/messages.c | 1 + source3/lib/messages_ctdbd.c | 1 + source3/lib/messages_local.c | 1 + source3/lib/server_contexts.c | 1 + source3/lib/tallocmsg.c | 1 + source3/lib/util.c | 1 + source3/lib/util_sconn.c | 1 + 11 files changed, 11 insertions(+) (limited to 'source3/lib') diff --git a/source3/lib/ctdbd_conn.c b/source3/lib/ctdbd_conn.c index 16e8cb915e..cc2f99782a 100644 --- a/source3/lib/ctdbd_conn.c +++ b/source3/lib/ctdbd_conn.c @@ -26,6 +26,7 @@ #include "librpc/gen_ndr/ndr_messaging.h" #include "ctdbd_conn.h" #include "packet.h" +#include "messages.h" /* paths to these include files come from --with-ctdb= in configure */ #include "ctdb.h" diff --git a/source3/lib/dbwrap_ctdb.c b/source3/lib/dbwrap_ctdb.c index 9b0b66c1f0..835f1cf04e 100644 --- a/source3/lib/dbwrap_ctdb.c +++ b/source3/lib/dbwrap_ctdb.c @@ -25,6 +25,7 @@ #include "ctdb_private.h" #include "ctdbd_conn.h" #include "g_lock.h" +#include "messages.h" struct db_ctdb_transaction_handle { struct db_ctdb_ctx *ctx; diff --git a/source3/lib/dmallocmsg.c b/source3/lib/dmallocmsg.c index 59f7c3bd7e..837994a6ea 100644 --- a/source3/lib/dmallocmsg.c +++ b/source3/lib/dmallocmsg.c @@ -18,6 +18,7 @@ #include "includes.h" #include "librpc/gen_ndr/messaging.h" +#include "messages.h" /** * @file dmallocmsg.c diff --git a/source3/lib/g_lock.c b/source3/lib/g_lock.c index 59f1d590b6..c9e16d0f77 100644 --- a/source3/lib/g_lock.c +++ b/source3/lib/g_lock.c @@ -24,6 +24,7 @@ #include "ctdbd_conn.h" #include "../lib/util/select.h" #include "system/select.h" +#include "messages.h" static NTSTATUS g_lock_force_unlock(struct g_lock_ctx *ctx, const char *name, struct server_id pid); diff --git a/source3/lib/messages.c b/source3/lib/messages.c index 1bf2cf8685..db916674c6 100644 --- a/source3/lib/messages.c +++ b/source3/lib/messages.c @@ -50,6 +50,7 @@ #include "librpc/gen_ndr/ndr_messaging.h" #include "dbwrap.h" #include "serverid.h" +#include "messages.h" struct messaging_callback { struct messaging_callback *prev, *next; diff --git a/source3/lib/messages_ctdbd.c b/source3/lib/messages_ctdbd.c index 871334649d..96a33abf50 100644 --- a/source3/lib/messages_ctdbd.c +++ b/source3/lib/messages_ctdbd.c @@ -18,6 +18,7 @@ */ #include "includes.h" +#include "messages.h" #ifdef CLUSTER_SUPPORT diff --git a/source3/lib/messages_local.c b/source3/lib/messages_local.c index 9b3a7ed7c7..4bcae544e2 100644 --- a/source3/lib/messages_local.c +++ b/source3/lib/messages_local.c @@ -46,6 +46,7 @@ #include "system/filesys.h" #include "librpc/gen_ndr/messaging.h" #include "librpc/gen_ndr/ndr_messaging.h" +#include "messages.h" struct messaging_tdb_context { struct messaging_context *msg_ctx; diff --git a/source3/lib/server_contexts.c b/source3/lib/server_contexts.c index f8fe9dceac..a95ea9acc2 100644 --- a/source3/lib/server_contexts.c +++ b/source3/lib/server_contexts.c @@ -19,6 +19,7 @@ */ #include "includes.h" +#include "messages.h" struct tevent_context *server_event_ctx = NULL; diff --git a/source3/lib/tallocmsg.c b/source3/lib/tallocmsg.c index 6cea757457..a90d973151 100644 --- a/source3/lib/tallocmsg.c +++ b/source3/lib/tallocmsg.c @@ -18,6 +18,7 @@ #include "includes.h" #include "librpc/gen_ndr/messaging.h" +#include "messages.h" /** * @file tallocmsg.c diff --git a/source3/lib/util.c b/source3/lib/util.c index 973670ede0..4e17e1e130 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -28,6 +28,7 @@ #include "secrets.h" #include "ctdbd_conn.h" #include "../lib/util/util_pw.h" +#include "messages.h" /* Max allowable allococation - 256mb - 0x10000000 */ #define MAX_ALLOC_SIZE (1024*1024*256) diff --git a/source3/lib/util_sconn.c b/source3/lib/util_sconn.c index a98c046ada..51ba29e788 100644 --- a/source3/lib/util_sconn.c +++ b/source3/lib/util_sconn.c @@ -19,6 +19,7 @@ #include "includes.h" #include "smbd/globals.h" +#include "messages.h" struct server_id sconn_server_id(const struct smbd_server_connection *sconn) { -- cgit