From: Günther Deschner Date: Mon, 20 Sep 2010 23:01:51 +0000 (-0700) Subject: lib/tdb: fix c++ build warning in tdb_header_hash(). X-Git-Url: http://git.samba.org/?p=obnox%2Fsamba-ctdb.git;a=commitdiff_plain;h=5f546bc640bbf12610cb671a9244c8b0e4867695 lib/tdb: fix c++ build warning in tdb_header_hash(). Guenther (cherry picked from commit 1585c4df68a66569524a41def95488666dd827dd) Signed-off-by: Stefan Metzmacher --- diff --git a/lib/tdb/common/open.c b/lib/tdb/common/open.c index 9eaa701b7d..7aace3723e 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);