summaryrefslogtreecommitdiff
path: root/lib/tdb2/check.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2011-09-14 08:13:28 +0930
committerRusty Russell <rusty@rustcorp.com.au>2011-09-14 08:13:28 +0930
commit2d7c85a971b2766e5ad6ce3664506deba87b53e1 (patch)
treefca43ee9009e17def04a88060d4a70ce76bd901f /lib/tdb2/check.c
parentc5c0a4d3315d10921f2d4514724da045edbda296 (diff)
downloadsamba-2d7c85a971b2766e5ad6ce3664506deba87b53e1.tar.gz
samba-2d7c85a971b2766e5ad6ce3664506deba87b53e1.tar.bz2
samba-2d7c85a971b2766e5ad6ce3664506deba87b53e1.zip
tdb2: fix prototypes which return enum TDB_ERROR.
Since enums and ints are compatible in C, the compiler didn't warn that our prototypes for these functions disagreed with the definitions. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from CCAN commit 6d3832ee613adeb9ae7ed6454996ffa39c32650f)
Diffstat (limited to 'lib/tdb2/check.c')
-rw-r--r--lib/tdb2/check.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tdb2/check.c b/lib/tdb2/check.c
index 8a89422b48..3003b62616 100644
--- a/lib/tdb2/check.c
+++ b/lib/tdb2/check.c
@@ -436,7 +436,7 @@ fail:
static enum TDB_ERROR check_hash(struct tdb_context *tdb,
tdb_off_t used[],
size_t num_used, size_t num_ftables,
- int (*check)(TDB_DATA, TDB_DATA, void *),
+ enum TDB_ERROR (*check)(TDB_DATA, TDB_DATA, void *),
void *data)
{
/* Free tables also show up as used. */