From 4574602057d7645d673d1cddeb1941677b797f82 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 8 Oct 2013 13:35:41 +0200 Subject: [PATCH] s3:ctdb_conn: only use ctdb_protocol.h or ctdb_private.h in ctdb_conn.c We don't need them in ctdb_conn.h. Signed-off-by: Stefan Metzmacher Reviewed-by: Michael Adam --- source3/lib/ctdb_conn.c | 8 ++++++++ source3/lib/ctdb_conn.h | 17 +---------------- 2 files changed, 9 insertions(+), 16 deletions(-) diff --git a/source3/lib/ctdb_conn.c b/source3/lib/ctdb_conn.c index 8e21b9a704b..214ea9799ae 100644 --- a/source3/lib/ctdb_conn.c +++ b/source3/lib/ctdb_conn.c @@ -23,6 +23,14 @@ #ifdef CLUSTER_SUPPORT +#include + +#ifdef HAVE_CTDB_PROTOCOL_H +#include +#else +#include +#endif + #include "lib/async_req/async_sock.h" struct ctdb_conn { diff --git a/source3/lib/ctdb_conn.h b/source3/lib/ctdb_conn.h index 0d648c78b8c..21a69c76718 100644 --- a/source3/lib/ctdb_conn.h +++ b/source3/lib/ctdb_conn.h @@ -20,26 +20,11 @@ #ifndef _CTDB_CONN_H #define _CTDB_CONN_H -#ifdef CLUSTER_SUPPORT - -#include - -#ifdef HAVE_CTDB_PROTOCOL_H -#include -#else -#include -#endif - -#else /* CLUSTER_SUPPORT */ - -struct ctdb_reply_control; - -#endif /* CLUSTER_SUPPORT */ - #include "tevent.h" #include "librpc/gen_ndr/messaging.h" struct ctdb_conn; +struct ctdb_reply_control; struct tevent_req *ctdb_conn_control_send(TALLOC_CTX *mem_ctx, struct tevent_context *ev, -- 2.11.4.GIT