summaryrefslogtreecommitdiff
path: root/source3/tdb/tdbtest.c
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-12-04 11:25:44 +0000
committerMartin Pool <mbp@samba.org>2001-12-04 11:25:44 +0000
commit28e676d9c341664d08baa77d6f48be061f7a5690 (patch)
treead890c10c43398d47669f8659348118d7a16518a /source3/tdb/tdbtest.c
parent7d9e09f5279ee19a69a0f9e09fe3bb9eb51cc885 (diff)
downloadsamba-28e676d9c341664d08baa77d6f48be061f7a5690.tar.gz
samba-28e676d9c341664d08baa77d6f48be061f7a5690.tar.bz2
samba-28e676d9c341664d08baa77d6f48be061f7a5690.zip
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)
Diffstat (limited to 'source3/tdb/tdbtest.c')
-rw-r--r--source3/tdb/tdbtest.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/tdb/tdbtest.c b/source3/tdb/tdbtest.c
index ca4ca54142..7f3b1d48b7 100644
--- a/source3/tdb/tdbtest.c
+++ b/source3/tdb/tdbtest.c
@@ -225,9 +225,9 @@ int main(int argc, char *argv[])
unlink("test.gdbm");
- db = tdb_open("test.tdb", 0, TDB_CLEAR_IF_FIRST,
- O_RDWR | O_CREAT | O_TRUNC, 0600,
- tdb_log_to_stderr);
+ db = tdb_open_ex("test.tdb", 0, TDB_CLEAR_IF_FIRST,
+ O_RDWR | O_CREAT | O_TRUNC, 0600,
+ tdb_log_to_stderr);
gdbm = gdbm_open("test.gdbm", 512, GDBM_WRITER|GDBM_NEWDB|GDBM_FAST,
0600, NULL);