summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-19 08:49:09 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:19:29 -0500
commitd6ca327bd5daeb9dc3b40eff6ce6857f5d81dd8f (patch)
tree65fc4d836134ea013f0948cf26a1a14d6c081b87
parentf2da00aadcf3a47d9f6a0662c97c36be32172c1a (diff)
downloadsamba-d6ca327bd5daeb9dc3b40eff6ce6857f5d81dd8f.tar.gz
samba-d6ca327bd5daeb9dc3b40eff6ce6857f5d81dd8f.tar.bz2
samba-d6ca327bd5daeb9dc3b40eff6ce6857f5d81dd8f.zip
r22363: merge from samba4:
fix compiler warning metze (This used to be commit e9200b4475bcae4fd5eaaf94905c8a9beccd635a)
-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) {