1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

r4939: make a few more private pointers type safe (this might help abartlet

track down a bug he just told me about)
This commit is contained in:
Andrew Tridgell 2005-01-23 09:03:05 +00:00 committed by Gerald (Jerry) Carter
parent 442308970c
commit fb326cbb32

View File

@ -279,7 +279,8 @@ void server_terminate_connection(struct server_connection *srv_conn, const char
void server_accept_handler(struct event_context *ev, struct fd_event *fde,
struct timeval t, uint16_t flags)
{
struct server_stream_socket *stream_socket = fde->private;
struct server_stream_socket *stream_socket = talloc_get_type(fde->private,
struct server_stream_socket);
stream_socket->service->server->model.ops->accept_connection(ev, fde, t, flags);
}
@ -287,7 +288,8 @@ void server_accept_handler(struct event_context *ev, struct fd_event *fde,
void server_io_handler(struct event_context *ev, struct fd_event *fde,
struct timeval t, uint16_t flags)
{
struct server_connection *conn = fde->private;
struct server_connection *conn = talloc_get_type(fde->private,
struct server_connection);
conn->event.idle->next_event = timeval_sum(&t, &conn->event.idle_time);
@ -305,7 +307,8 @@ void server_io_handler(struct event_context *ev, struct fd_event *fde,
void server_idle_handler(struct event_context *ev, struct timed_event *idle,
struct timeval t)
{
struct server_connection *conn = idle->private;
struct server_connection *conn = talloc_get_type(idle->private,
struct server_connection);
/* Not all services provide an idle handler */
if (conn->stream_socket->stream.ops->idle_handler) {