git.samba.org
/
samba.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/tdb: fix c++ build warning in tdb_header_hash().
[samba.git]
/
lib
/
tdb
/
common
/
open.c
diff --git
a/lib/tdb/common/open.c
b/lib/tdb/common/open.c
index d195c1c48409f7a6ed28a002ff9dea03a1a4429a..a9649945095b67ef29a389115bc7cc70d5d5c2c3 100644
(file)
--- 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);