From 5f546bc640bbf12610cb671a9244c8b0e4867695 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Mon, 20 Sep 2010 16:01:51 -0700 Subject: [PATCH] lib/tdb: fix c++ build warning in tdb_header_hash(). Guenther (cherry picked from commit 1585c4df68a66569524a41def95488666dd827dd) Signed-off-by: Stefan Metzmacher --- lib/tdb/common/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.34.1