diff options
author | Martin Schwenke <martin@meltin.net> | 2014-09-09 12:58:13 +1000 |
---|---|---|
committer | Amitay Isaacs <amitay@samba.org> | 2014-09-10 04:03:20 +0200 |
commit | 5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7 (patch) | |
tree | 2d05e6e600cf63b5f23c242645a659becd4db0a5 /ctdb | |
parent | 86430d528bbb1d8ddb6de57c7a35e15b31977498 (diff) | |
download | samba-5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7.tar.gz samba-5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7.tar.xz samba-5629cfcd2e62bedbcbe35d33c83123cf0cd72fb7.zip |
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 <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Wed Sep 10 04:03:20 CEST 2014 on sn-devel-104
Diffstat (limited to 'ctdb')
-rw-r--r-- | ctdb/lib/tdb_wrap/tdb_wrap.c | 7 | ||||
-rw-r--r-- | 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 <talloc.h> +#include <tdb.h> + struct tdb_wrap { struct tdb_context *tdb; |