From 5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7 Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 9 Sep 2014 12:58:13 +1000 Subject: ctdb-util: Make tdb_wrap self-sufficient - it doesn't need includes.h It should use finer grained includes like replace.h and ctdb_logging.h. Signed-off-by: Martin Schwenke Reviewed-by: Amitay Isaacs Autobuild-User(master): Amitay Isaacs Autobuild-Date(master): Wed Sep 10 04:03:20 CEST 2014 on sn-devel-104 --- ctdb/lib/tdb_wrap/tdb_wrap.c | 7 +++++-- ctdb/lib/tdb_wrap/tdb_wrap.h | 3 +++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ctdb/lib/tdb_wrap/tdb_wrap.c b/ctdb/lib/tdb_wrap/tdb_wrap.c index 2a6dbe5e82..f39ac7a091 100644 --- a/ctdb/lib/tdb_wrap/tdb_wrap.c +++ b/ctdb/lib/tdb_wrap/tdb_wrap.c @@ -26,9 +26,12 @@ of talloc destructors to ensure that only a single open is done */ -#include "includes.h" +#include "replace.h" #include "lib/util/dlinklist.h" -#include "tdb.h" +#include "lib/util/debug.h" + +#include "ctdb_logging.h" + #include "tdb_wrap.h" static struct tdb_wrap *tdb_list; diff --git a/ctdb/lib/tdb_wrap/tdb_wrap.h b/ctdb/lib/tdb_wrap/tdb_wrap.h index b11d9585e3..026e6ba095 100644 --- a/ctdb/lib/tdb_wrap/tdb_wrap.h +++ b/ctdb/lib/tdb_wrap/tdb_wrap.h @@ -22,6 +22,9 @@ #ifndef _DB_WRAP_H #define _DB_WRAP_H +#include +#include + struct tdb_wrap { struct tdb_context *tdb; -- cgit