From f8bd8924caf9f56666facfbe93778dd01288be6e Mon Sep 17 00:00:00 2001 From: Martin Schwenke Date: Tue, 19 Aug 2014 12:22:00 +1000 Subject: [PATCH] tdb_wrap: Standalone compile without includes.h Compiling this generic code is confusing because it uses includes.h, which could come from source3, source4 or ctdb. Generic code should be independent of such things. Drop include of param.h since nothing from that file is used. Signed-off-by: Martin Schwenke Reviewed-by: Volker Lendecke --- lib/tdb_wrap/tdb_wrap.c | 6 +++--- lib/tdb_wrap/tdb_wrap.h | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/tdb_wrap/tdb_wrap.c b/lib/tdb_wrap/tdb_wrap.c index 970c91f1c72..f2f32d1f085 100644 --- a/lib/tdb_wrap/tdb_wrap.c +++ b/lib/tdb_wrap/tdb_wrap.c @@ -19,11 +19,11 @@ along with this program. If not, see . */ -#include "includes.h" +#include "replace.h" #include "lib/util/dlinklist.h" -#include "lib/tdb_wrap/tdb_wrap.h" -#include "lib/param/param.h" #include "ccan/str/str.h" +#include "lib/util/debug.h" +#include "tdb_wrap.h" /* Log tdb messages via DEBUG(). diff --git a/lib/tdb_wrap/tdb_wrap.h b/lib/tdb_wrap/tdb_wrap.h index ac4f8d19f70..de7e332bdb9 100644 --- a/lib/tdb_wrap/tdb_wrap.h +++ b/lib/tdb_wrap/tdb_wrap.h @@ -29,7 +29,8 @@ #ifndef _TDB_WRAP_H_ #define _TDB_WRAP_H_ -#include "tdb.h" +#include +#include struct tdb_wrap { struct tdb_context *tdb;