From 1ea6fabcde6cbd57aed06926193ac68f5887e96b Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 24 Jan 2013 14:21:51 +0100 Subject: ldb: fix a warning by converting from TDB_DATA to struct ldb_val Signed-off-by: Stefan Metzmacher Reviewed-by: Andrew Bartlett --- lib/ldb/tools/ldbdump.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'lib/ldb') diff --git a/lib/ldb/tools/ldbdump.c b/lib/ldb/tools/ldbdump.c index edf7b5efb5..3197d19266 100644 --- a/lib/ldb/tools/ldbdump.c +++ b/lib/ldb/tools/ldbdump.c @@ -31,11 +31,15 @@ static struct ldb_context *ldb; bool show_index = false; bool validate_contents = false; -static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf, void *state) +static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA _dbuf, void *state) { int ret, i, j; struct ldb_dn *dn = state; struct ldb_message *msg = talloc_zero(NULL, struct ldb_message); + struct ldb_val dbuf = { + .data = _dbuf.dptr, + .length = _dbuf.dsize, + }; struct ldb_ldif ldif = { .msg = msg, .changetype = LDB_CHANGETYPE_NONE -- cgit