From 1585c4df68a66569524a41def95488666dd827dd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Mon, 20 Sep 2010 16:01:51 -0700 Subject: lib/tdb: fix c++ build warning in tdb_header_hash(). Guenther --- lib/tdb/common/open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/tdb/common/open.c') 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); -- cgit