mirror of
https://github.com/samba-team/samba.git
synced 2025-02-28 01:58:17 +03:00
ctdb-common: Remove sock_queue_destructor
The sock_queue_destructor is not needed. The performed tasks will be performed automatically. Signed-off-by: Swen Schillig <swen@vnet.ibm.com> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
f9150c5fa0
commit
eae2d35fec
@ -95,7 +95,6 @@ struct sock_queue {
|
||||
};
|
||||
|
||||
static bool sock_queue_set_fd(struct sock_queue *queue, int fd);
|
||||
static int sock_queue_destructor(struct sock_queue *queue);
|
||||
static void sock_queue_handler(struct tevent_context *ev,
|
||||
struct tevent_fd *fde, uint16_t flags,
|
||||
void *private_data);
|
||||
@ -138,8 +137,6 @@ struct sock_queue *sock_queue_setup(TALLOC_CTX *mem_ctx,
|
||||
return NULL;
|
||||
}
|
||||
|
||||
talloc_set_destructor(queue, sock_queue_destructor);
|
||||
|
||||
return queue;
|
||||
}
|
||||
|
||||
@ -168,14 +165,6 @@ static bool sock_queue_set_fd(struct sock_queue *queue, int fd)
|
||||
return true;
|
||||
}
|
||||
|
||||
static int sock_queue_destructor(struct sock_queue *queue)
|
||||
{
|
||||
TALLOC_FREE(queue->fde);
|
||||
queue->fd = -1;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void sock_queue_handler(struct tevent_context *ev,
|
||||
struct tevent_fd *fde, uint16_t flags,
|
||||
void *private_data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user