Browse Source

tdb: fix test helper to include own header, fix function definition.

Rusty Russell 15 years ago
parent
commit
233e3055c4
1 changed files with 2 additions and 1 deletions
  1. 2 1
      ccan/tdb/test/lock-tracking.c

+ 2 - 1
ccan/tdb/test/lock-tracking.c

@@ -5,6 +5,7 @@
 #include <stdlib.h>
 #include <stdlib.h>
 #include <ccan/tap/tap.h>
 #include <ccan/tap/tap.h>
 #include <ccan/tdb/tdb_private.h>
 #include <ccan/tdb/tdb_private.h>
+#include "lock-tracking.h"
 
 
 struct lock {
 struct lock {
 	struct lock *next;
 	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;
 	unsigned int num = 0;
 	while (locks) {
 	while (locks) {