From 84503c81f0a48be06f5a73ee2334fc0f6824a78f Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Tue, 4 Dec 2001 11:41:12 +0000 Subject: undo (This used to be commit fc176f15f27686049453552219b56b9de33ceffa) --- source3/tdb/tdbtool.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source3/tdb/tdbtool.c') diff --git a/source3/tdb/tdbtool.c b/source3/tdb/tdbtool.c index a559fb0558..31ecd17a0c 100644 --- a/source3/tdb/tdbtool.c +++ b/source3/tdb/tdbtool.c @@ -29,7 +29,6 @@ #include #include #include -#include #include #include #include @@ -174,9 +173,8 @@ static void create_tdb(void) return; } if (tdb) tdb_close(tdb); - tdb = tdb_open_ex(tok, 0, TDB_CLEAR_IF_FIRST, - O_RDWR | O_CREAT | O_TRUNC, 0600, - tdb_log_to_stderr); + tdb = tdb_open(tok, 0, TDB_CLEAR_IF_FIRST, + O_RDWR | O_CREAT | O_TRUNC, 0600); if (!tdb) { printf("Could not create %s: %s\n", tok, strerror(errno)); } @@ -190,7 +188,7 @@ static void open_tdb(void) return; } if (tdb) tdb_close(tdb); - tdb = tdb_open_ex(tok, 0, 0, O_RDWR, 0600, tdb_log_to_stderr); + tdb = tdb_open(tok, 0, 0, O_RDWR, 0600); if (!tdb) { printf("Could not open %s: %s\n", tok, strerror(errno)); } @@ -385,7 +383,6 @@ static void next_record(TDB_CONTEXT *tdb, TDB_DATA *pkey) print_rec(tdb, *pkey, dbuf, NULL); } - int main(int argc, char *argv[]) { int bIterate = 0; -- cgit