From ca1936fbb26af0ee8d0421ae6a4e07a0f62311d9 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 20 Jun 2011 18:40:32 +0930 Subject: tdb_compat: use tdb_open_compat. This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell --- testsuite/printing/psec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'testsuite') diff --git a/testsuite/printing/psec.c b/testsuite/printing/psec.c index 24386149966..59205446d05 100644 --- a/testsuite/printing/psec.c +++ b/testsuite/printing/psec.c @@ -171,7 +171,7 @@ int psec_getsec(char *printer) slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", lp_lockdir()); - tdb = tdb_open(tdb_path, 0, 0, O_RDONLY, 0600); + tdb = tdb_open_compat(tdb_path, 0, 0, O_RDONLY, 0600, NULL, NULL); if (!tdb) { printf("psec: failed to open nt drivers database: %s\n", @@ -275,7 +275,7 @@ int psec_setsec(char *printer) slprintf(tdb_path, sizeof(tdb_path) - 1, "%s/ntdrivers.tdb", lp_lockdir()); - tdb = tdb_open(tdb_path, 0, 0, O_RDWR, 0600); + tdb = tdb_open_compat(tdb_path, 0, 0, O_RDWR, 0600, NULL, NULL); if (!tdb) { printf("psec: failed to open nt drivers database: %s\n", -- cgit v1.2.1