1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-07 12:23:51 +03:00

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 commit is contained in:
Andrew Tridgell
2006-05-24 07:32:17 +00:00
committed by Gerald (Jerry) Carter
parent babbff5f77
commit 6b4c085b86
8 changed files with 23 additions and 35 deletions

View File

@@ -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;