summaryrefslogtreecommitdiff
path: root/source3/tdb/tdbtorture.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/tdb/tdbtorture.c')
-rw-r--r--source3/tdb/tdbtorture.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/tdb/tdbtorture.c b/source3/tdb/tdbtorture.c
index 66c424c355..c4d912a147 100644
--- a/source3/tdb/tdbtorture.c
+++ b/source3/tdb/tdbtorture.c
@@ -67,11 +67,11 @@ static char *randbuf(int len)
return buf;
}
-static int cull_traverse(TDB_CONTEXT *db, TDB_DATA key, TDB_DATA dbuf,
+static int cull_traverse(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
void *state)
{
if (random() % CULL_PROB == 0) {
- tdb_delete(db, key);
+ tdb_delete(tdb, key);
}
return 0;
}
@@ -151,10 +151,10 @@ next:
free(s);
}
-static int traverse_fn(TDB_CONTEXT *db, TDB_DATA key, TDB_DATA dbuf,
+static int traverse_fn(TDB_CONTEXT *tdb, TDB_DATA key, TDB_DATA dbuf,
void *state)
{
- tdb_delete(db, key);
+ tdb_delete(tdb, key);
return 0;
}