tdb2: fix prototypes which return enum TDB_ERROR.
[ccan] / ccan / tdb2 / check.c
index b3874c6d27b1b48256b748608a29d0e0b184a6e1..a8b5b3d558c04e2943912d77b7b558e3cd609499 100644 (file)
@@ -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. */