]> git.ozlabs.org Git - ccan/blobdiff - ccan/tdb/test/lock-tracking.c
tdb: fix test helper to include own header, fix function definition.
[ccan] / 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 <stdlib.h>
 #include <ccan/tap/tap.h>
 #include <ccan/tdb/tdb_private.h>
+#include "lock-tracking.h"
 
 struct lock {
        struct lock *next;
 
 struct lock {
        struct lock *next;
@@ -132,7 +133,7 @@ done:
        return ret;
 }
 
        return ret;
 }
 
-int forget_locking(void)
+unsigned int forget_locking(void)
 {
        unsigned int num = 0;
        while (locks) {
 {
        unsigned int num = 0;
        while (locks) {