diff options
author | Stefan Metzmacher <metze@samba.org> | 2013-01-24 14:21:51 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2013-01-26 13:41:39 +0100 |
commit | 1ea6fabcde6cbd57aed06926193ac68f5887e96b (patch) | |
tree | c7ca90a295f019ea0369aa340ba64712d9b7def7 /lib | |
parent | d79485a566e3c59ce53c3ee205aa6c78f149f5d8 (diff) | |
download | samba-1ea6fabcde6cbd57aed06926193ac68f5887e96b.tar.gz samba-1ea6fabcde6cbd57aed06926193ac68f5887e96b.tar.bz2 samba-1ea6fabcde6cbd57aed06926193ac68f5887e96b.zip |
ldb: fix a warning by converting from TDB_DATA to struct ldb_val
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ldb/tools/ldbdump.c | 6 |
1 files changed, 5 insertions, 1 deletions
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 |