1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-05 12:22:11 +03:00

r15854: more talloc_set_destructor() typesafe fixes

(This used to be commit 61c6100617)
This commit is contained in:
Andrew Tridgell
2006-05-24 07:34:11 +00:00
committed by Gerald (Jerry) Carter
parent cdc64c448d
commit 971d30bb20
29 changed files with 50 additions and 104 deletions

View File

@ -28,9 +28,8 @@
/*
auto-close sockets on free
*/
static int socket_destructor(void *ptr)
static int socket_destructor(struct socket_context *sock)
{
struct socket_context *sock = ptr;
if (sock->ops->fn_close) {
sock->ops->fn_close(sock);
}