summaryrefslogtreecommitdiff
path: root/source4/lib
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2006-05-24 07:32:17 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:32 -0500
commitcdc64c448df49676c96f87d106af8de0c467651f (patch)
tree341b178e8bc20e6b132382f8fce05204978ddd9d /source4/lib
parenta665cccd2ef81e704e90bb228bbd14c0afb031af (diff)
downloadsamba-cdc64c448df49676c96f87d106af8de0c467651f.tar.gz
samba-cdc64c448df49676c96f87d106af8de0c467651f.tar.bz2
samba-cdc64c448df49676c96f87d106af8de0c467651f.zip
r15853: started the process of removing the warnings now that
talloc_set_destructor() is type safe. The end result will be lots less use of void*, and less calls to talloc_get_type() (This used to be commit 6b4c085b862c0932b80b93e316396a53b993544c)
Diffstat (limited to 'source4/lib')
-rw-r--r--source4/lib/db_wrap.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/lib/db_wrap.c b/source4/lib/db_wrap.c
index 9ff4301fdb..43ad3d0fae 100644
--- a/source4/lib/db_wrap.c
+++ b/source4/lib/db_wrap.c
@@ -166,9 +166,8 @@ static void tdb_wrap_log(TDB_CONTEXT *tdb, int level,
/* destroy the last connection to a tdb */
-static int tdb_wrap_destructor(void *ctx)
+static int tdb_wrap_destructor(struct tdb_wrap *w)
{
- struct tdb_wrap *w = ctx;
tdb_close(w->tdb);
DLIST_REMOVE(tdb_list, w);
return 0;