From 28e676d9c341664d08baa77d6f48be061f7a5690 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Tue, 4 Dec 2001 11:25:44 +0000 Subject: Implement suggestion from tridge to leave the old tdb_open interface as it was, and add tdb_open_ex() which takes a log callback. I guess this makes more sense since it's a public interface. (This used to be commit 391a65395e6cdc0300f81eb1072a3366cacd1203) --- source3/tdb/tdbtool.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/tdb/tdbtool.c') diff --git a/source3/tdb/tdbtool.c b/source3/tdb/tdbtool.c index ecde37a5ea..a559fb0558 100644 --- a/source3/tdb/tdbtool.c +++ b/source3/tdb/tdbtool.c @@ -174,9 +174,9 @@ static void create_tdb(void) return; } if (tdb) tdb_close(tdb); - tdb = tdb_open(tok, 0, TDB_CLEAR_IF_FIRST, - O_RDWR | O_CREAT | O_TRUNC, 0600, - tdb_log_to_stderr); + tdb = tdb_open_ex(tok, 0, TDB_CLEAR_IF_FIRST, + O_RDWR | O_CREAT | O_TRUNC, 0600, + tdb_log_to_stderr); if (!tdb) { printf("Could not create %s: %s\n", tok, strerror(errno)); } @@ -190,7 +190,7 @@ static void open_tdb(void) return; } if (tdb) tdb_close(tdb); - tdb = tdb_open(tok, 0, 0, O_RDWR, 0600, tdb_log_to_stderr); + tdb = tdb_open_ex(tok, 0, 0, O_RDWR, 0600, tdb_log_to_stderr); if (!tdb) { printf("Could not open %s: %s\n", tok, strerror(errno)); } -- cgit