return NTDB_SUCCESS;
}
-static int off_cmp(const ntdb_off_t *a, const ntdb_off_t *b)
+static int off_cmp(const ntdb_off_t *a, const ntdb_off_t *b, void *ctx)
{
/* Can overflow an int. */
return *a > *b ? 1
" %llu", (long long)off_and_hash);
}
- p = asearch(&off, used, num_used, off_cmp);
+ p = asearch(&off, used, num_used, off_cmp, NULL);
if (!p) {
return ntdb_logerr(ntdb, NTDB_ERR_CORRUPT, NTDB_LOG_ERROR,
"ntdb_check: Invalid offset"
}
/* FIXME: Check hash bits */
- p = asearch(&off, fr, num_free, off_cmp);
+ p = asearch(&off, fr, num_free, off_cmp, NULL);
if (!p) {
return ntdb_logerr(ntdb, NTDB_ERR_CORRUPT,
NTDB_LOG_ERROR,