git.samba.org
/
ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3cc73c5
)
lib/tdb: fix c++ build warning in tdb_header_hash().
author
Günther Deschner
<gd@samba.org>
Mon, 20 Sep 2010 23:01:51 +0000
(16:01 -0700)
committer
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 7 Oct 2010 04:41:53 +0000
(15:11 +1030)
Guenther
lib/tdb/common/open.c
patch
|
blob
|
history
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);