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 | eca99f5c226f9518d1ab5c0ba3e586e3d59564d7 (patch) | |
tree | 6ac655522c7add955591f37295d07b86d8d7ff7e /source3/tdb | |
parent | b4e634f43640dd926009bf5020c262490965c501 (diff) | |
download | samba-eca99f5c226f9518d1ab5c0ba3e586e3d59564d7.tar.gz samba-eca99f5c226f9518d1ab5c0ba3e586e3d59564d7.tar.bz2 samba-eca99f5c226f9518d1ab5c0ba3e586e3d59564d7.zip |
Fixed nasty cast of tdb_delete in traversals.
Jeremy.
(This used to be commit a0cdec3acc82d1ce0292fadd4b8dac23638450f3)
Diffstat (limited to 'source3/tdb')
-rw-r--r-- | source3/tdb/tdbutil.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/tdb/tdbutil.c b/source3/tdb/tdbutil.c index 9e24562118..22ead16e1f 100644 --- a/source3/tdb/tdbutil.c +++ b/source3/tdb/tdbutil.c @@ -399,3 +399,14 @@ TDB_CONTEXT *tdb_open_log(char *name, int hash_size, int tdb_flags, return tdb; } + + +/**************************************************************************** + Allow tdb_delete to be used as a tdb_traversal_fn. +****************************************************************************/ + +int tdb_traverse_delete_fn(TDB_CONTEXT *the_tdb, TDB_DATA key, TDB_DATA dbuf, + void *state) +{ + return tdb_delete(the_tdb, key); +} |