git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
78b6265
)
tdb: fix compiler warning
author
Stefan Metzmacher
<metze@samba.org>
Tue, 14 Sep 2010 10:44:42 +0000
(12:44 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Fri, 17 Sep 2010 13:52:29 +0000
(15:52 +0200)
metze
lib/tdb/common/open.c
patch
|
blob
|
history
diff --git
a/lib/tdb/common/open.c
b/lib/tdb/common/open.c
index d195c1c48409f7a6ed28a002ff9dea03a1a4429a..cbb14fa2849866866ba3d833da7478c28cf58b31 100644
(file)
--- a/
lib/tdb/common/open.c
+++ b/
lib/tdb/common/open.c
@@
-51,7
+51,7
@@
void tdb_header_hash(struct tdb_context *tdb,
TDB_DATA hash_key;
uint32_t tdb_magic = TDB_MAGIC;
- hash_key.dptr =
(unsigned char *)TDB_MAGIC_FOOD
;
+ hash_key.dptr =
discard_const_p(uint8_t, TDB_MAGIC_FOOD)
;
hash_key.dsize = sizeof(TDB_MAGIC_FOOD);
*magic1_hash = tdb->hash_fn(&hash_key);