summaryrefslogtreecommitdiff
path: root/source3/tdb
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2001-07-04 04:39:52 +0000
committerAndrew Tridgell <tridge@samba.org>2001-07-04 04:39:52 +0000
commita594519d28e57ebd793ae4e4023a6253652caa61 (patch)
tree7a70e556ff57d636113f228b12ebd5be879e0a95 /source3/tdb
parent59db9bcbf084a23c1f8c7e1c7017f064b8c1e59c (diff)
downloadsamba-a594519d28e57ebd793ae4e4023a6253652caa61.tar.gz
samba-a594519d28e57ebd793ae4e4023a6253652caa61.tar.bz2
samba-a594519d28e57ebd793ae4e4023a6253652caa61.zip
removed some debug code
(This used to be commit 1f6240daae4c5503d6fbb846d89cae986e010fc8)
Diffstat (limited to 'source3/tdb')
-rw-r--r--source3/tdb/tdbtest.c31
1 files changed, 13 insertions, 18 deletions
diff --git a/source3/tdb/tdbtest.c b/source3/tdb/tdbtest.c
index 2cc7e88729..9677515570 100644
--- a/source3/tdb/tdbtest.c
+++ b/source3/tdb/tdbtest.c
@@ -188,39 +188,34 @@ static int traverse_fn(TDB_CONTEXT *db, TDB_DATA key, TDB_DATA dbuf, void *state
static void merge_test()
{
- int klen, dlen;
- int i;
+ int klen, dlen;
+ int i;
char keys[5][2];
- TDB_DATA key, data;
-
+ TDB_DATA key, data;
+
for (i = 0; i < 5; i++) {
sprintf(keys[i], "%d", i);
- key.dptr = keys[i];
- key.dsize = 2;
-
- data.dptr = "test";
- data.dsize = 4;
-
- if (tdb_store(db, key, data, TDB_REPLACE) != 0) {
- fatal("tdb_store failed");
- }
+ key.dptr = keys[i];
+ key.dsize = 2;
+
+ data.dptr = "test";
+ data.dsize = 4;
+
+ if (tdb_store(db, key, data, TDB_REPLACE) != 0) {
+ fatal("tdb_store failed");
+ }
}
key.dptr = keys[0];
tdb_delete(db, key);
- tdb_printfreelist(db);
key.dptr = keys[4];
tdb_delete(db, key);
- tdb_printfreelist(db);
key.dptr = keys[2];
tdb_delete(db, key);
- tdb_printfreelist(db);
key.dptr = keys[1];
tdb_delete(db, key);
- tdb_printfreelist(db);
key.dptr = keys[3];
tdb_delete(db, key);
- tdb_printfreelist(db);
}
int main(int argc, char *argv[])