summaryrefslogtreecommitdiff
path: root/lib/tdb/common
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-09-20 16:01:51 -0700
committerGünther Deschner <gd@samba.org>2010-09-20 16:15:11 -0700
commit1585c4df68a66569524a41def95488666dd827dd (patch)
tree3a864a8be0d56fb62fa932e9b532acc51b637ccb /lib/tdb/common
parent80ca590d38d16723c6f457249e4051d5aa5843c5 (diff)
downloadsamba-1585c4df68a66569524a41def95488666dd827dd.tar.gz
samba-1585c4df68a66569524a41def95488666dd827dd.tar.bz2
samba-1585c4df68a66569524a41def95488666dd827dd.zip
lib/tdb: fix c++ build warning in tdb_header_hash().
Guenther
Diffstat (limited to 'lib/tdb/common')
-rw-r--r--lib/tdb/common/open.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c
index d195c1c484..a964994509 100644
--- a/lib/tdb/common/open.c
+++ b/lib/tdb/common/open.c
@@ -55,7 +55,7 @@ void tdb_header_hash(struct tdb_context *tdb,
hash_key.dsize = sizeof(TDB_MAGIC_FOOD);
*magic1_hash = tdb->hash_fn(&hash_key);
- hash_key.dptr = CONVERT(tdb_magic);
+ hash_key.dptr = (unsigned char *)CONVERT(tdb_magic);
hash_key.dsize = sizeof(tdb_magic);
*magic2_hash = tdb->hash_fn(&hash_key);