diff options
author | Jeremy Allison <jra@samba.org> | 2002-01-03 22:48:48 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2002-01-03 22:48:48 +0000 |
commit | a0cdec3acc82d1ce0292fadd4b8dac23638450f3 (patch) | |
tree | 679fe14b82c86f821915cef9ccb5c45196ed083b /source/printing | |
parent | 72bda5e82173a95af58c58f8b454850f8794c356 (diff) | |
download | samba-a0cdec3acc82d1ce0292fadd4b8dac23638450f3.tar.gz samba-a0cdec3acc82d1ce0292fadd4b8dac23638450f3.tar.xz samba-a0cdec3acc82d1ce0292fadd4b8dac23638450f3.zip |
Fixed nasty cast of tdb_delete in traversals.
Jeremy.
Diffstat (limited to 'source/printing')
-rw-r--r-- | source/printing/nt_printing.c | 2 | ||||
-rw-r--r-- | source/printing/printing.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/printing/nt_printing.c b/source/printing/nt_printing.c index b2e7a096e9d..7c565121730 100644 --- a/source/printing/nt_printing.c +++ b/source/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/source/printing/printing.c b/source/printing/printing.c index 0a97cb52b36..ab966bd9f24 100644 --- a/source/printing/printing.c +++ b/source/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); |