summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
Diffstat (limited to 'source3')
-rw-r--r--source3/lib/tdb/tools/tdbdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/lib/tdb/tools/tdbdump.c b/source3/lib/tdb/tools/tdbdump.c
index f01fa426e5..4ceef2d60c 100644
--- a/source3/lib/tdb/tools/tdbdump.c
+++ b/source3/lib/tdb/tools/tdbdump.c
@@ -65,7 +65,7 @@ static int dump_tdb(const char *fname, const char *keyname)
if (!keyname) {
tdb_traverse(tdb, traverse_fn, NULL);
} else {
- key.dptr = (unsigned char *)keyname;
+ key.dptr = discard_const_p(uint8_t,keyname);
key.dsize = strlen( keyname);
value = tdb_fetch(tdb, key);
if (!value.dptr) {