tdb: fix test helper to include own header, fix function definition.
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Sep 2010 11:06:12 +0000 (20:36 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Sep 2010 11:06:12 +0000 (20:36 +0930)
ccan/tdb/test/lock-tracking.c

index f6e97138e8b7f07b5b00336a9d7a0ed834d045d9..8e8bb999c52df90ce01a444b4d987b511b2c2e16 100644 (file)
@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <ccan/tap/tap.h>
 #include <ccan/tdb/tdb_private.h>
+#include "lock-tracking.h"
 
 struct lock {
        struct lock *next;
@@ -132,7 +133,7 @@ done:
        return ret;
 }
 
-int forget_locking(void)
+unsigned int forget_locking(void)
 {
        unsigned int num = 0;
        while (locks) {