lib/tdb: fix c++ build warning in tdb_header_hash().
authorGünther Deschner <gd@samba.org>
Mon, 20 Sep 2010 23:01:51 +0000 (16:01 -0700)
committerStefan Metzmacher <metze@samba.org>
Thu, 21 Oct 2010 12:24:26 +0000 (14:24 +0200)
Guenther
(cherry picked from commit 1585c4df68a66569524a41def95488666dd827dd)

Signed-off-by: Stefan Metzmacher <metze@samba.org>
lib/tdb/common/open.c

index 9eaa701b7d6ade35c7d0dd289c8847a6f9507ee6..7aace3723e0e2fe8bf228f34c43051555b3312ae 100644 (file)
@@ -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);