tdb: fix tdb_check() on other-endian tdbs.
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 09:17:14 +0000 (18:47 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 13 Sep 2010 09:17:14 +0000 (18:47 +0930)
commita1ace0cd114e0c588d6ce1b9e7386af11716e0bd
treea932333d91016797158a2a6198470fabce93c531
parentba2cc03f0648101ca0be687ae70947e7ae331f4c
tdb: fix tdb_check() on other-endian tdbs.

We must not endian-convert the magic string, just the rest.
ccan/tdb/check.c
ccan/tdb/test/run-check.c
ccan/tdb/test/tdb-be.tdb [new file with mode: 0644]
ccan/tdb/test/tdb-le.tdb [new file with mode: 0644]