tdb2: tdb_mkdata
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:42:17 +0000 (22:12 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 21 Mar 2011 11:42:17 +0000 (22:12 +1030)
commitf367a1dc8573db0a1f6f49fcda474eb51c192241
treef986c803e36a6623defba9575091101b8c0759a7
parent45e9956d665dc8819eb183ae239581410dcecdb3
tdb2: tdb_mkdata

It's common to want to create a struct tdb_data which contains a const
pointer, so add a helper to do so, and use it to clean up other -Wcast-qual
warnings.
20 files changed:
ccan/tdb2/check.c
ccan/tdb2/private.h
ccan/tdb2/tdb.c
ccan/tdb2/tdb2.h
ccan/tdb2/test/external-agent.c
ccan/tdb2/test/run-03-coalesce.c
ccan/tdb2/test/run-04-basichash.c
ccan/tdb2/test/run-10-simple-store.c
ccan/tdb2/test/run-11-simple-fetch.c
ccan/tdb2/test/run-13-delete.c
ccan/tdb2/test/run-15-append.c
ccan/tdb2/test/run-20-growhash.c
ccan/tdb2/test/run-50-multiple-freelists.c
ccan/tdb2/test/run-55-transaction.c
ccan/tdb2/test/run-56-open-during-transaction.c
ccan/tdb2/test/run-57-die-during-transaction.c
ccan/tdb2/test/run-81-seqnum.c
ccan/tdb2/test/run-record-expand.c
ccan/tdb2/test/run-remap-in-read_traverse.c
ccan/tdb2/test/run-simple-delete.c