summaryrefslogtreecommitdiff
path: root/source3/printing
diff options
context:
space:
mode:
Diffstat (limited to 'source3/printing')
-rw-r--r--source3/printing/nt_printing.c2
-rw-r--r--source3/printing/printing.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/source3/printing/nt_printing.c b/source3/printing/nt_printing.c
index b2e7a096e9..7c56512173 100644
--- a/source3/printing/nt_printing.c
+++ b/source3/printing/nt_printing.c
@@ -269,7 +269,7 @@ BOOL nt_printing_init(void)
if (!upgrade_to_version_2())
return False;
} else
- tdb_traverse(tdb_drivers, (tdb_traverse_func)tdb_delete, NULL);
+ tdb_traverse(tdb_drivers, tdb_traverse_delete_fn, NULL);
tdb_store_int(tdb_drivers, vstring, NTDRIVERS_DATABASE_VERSION);
}
diff --git a/source3/printing/printing.c b/source3/printing/printing.c
index 0a97cb52b3..ab966bd9f2 100644
--- a/source3/printing/printing.c
+++ b/source3/printing/printing.c
@@ -64,7 +64,7 @@ BOOL print_backend_init(void)
/* handle a Samba upgrade */
tdb_lock_bystring(tdb, sversion);
if (tdb_fetch_int(tdb, sversion) != PRINT_DATABASE_VERSION) {
- tdb_traverse(tdb, (tdb_traverse_func)tdb_delete, NULL);
+ tdb_traverse(tdb, tdb_traverse_delete_fn, NULL);
tdb_store_int(tdb, sversion, PRINT_DATABASE_VERSION);
}
tdb_unlock_bystring(tdb, sversion);