tdb2: tlist: remove type arg from tlist_top(), tlist_tail()
authorRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 06:34:31 +0000 (17:04 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Mon, 5 Dec 2011 11:13:08 +0000 (12:13 +0100)
With the type canary, it's unnecessary.  Though the implementation is
a bit more awkward since they longer map directly through to list_top/tail.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
(Imported from CCAN commit a6b5111fe6948e51114c33aa34785c9fd0d403e6)

Autobuild-User: Rusty Russell <rusty@rustcorp.com.au>
Autobuild-Date: Mon Dec  5 12:13:08 CET 2011 on sn-devel-104

lib/tdb2/test/failtest_helper.c

index 3172e3ad6e150478812c6b9e33434929ee147167..ab79de1978c5d80291426dfa565b7a544b8cf48b 100644 (file)
@@ -72,7 +72,7 @@ block_repeat_failures(struct tlist_calls *history)
 {
        const struct failtest_call *last;
 
-       last = tlist_tail(history, struct failtest_call, list);
+       last = tlist_tail(history, list);
 
        if (failtest_suppress)
                return FAIL_DONT_FAIL;