Commit 69acffa3 authored by Niels Möller's avatar Niels Möller
Browse files

* src/io_commands.c (do_listen): Pass a sockaddr * rather than a

sockaddr_in * to io_listen.
(do_listen_connection): Likewise.

Rev: src/io_commands.c:1.27
parent f210e5c6
......@@ -175,7 +175,8 @@ do_listen(struct io_backend *backend,
return;
}
fd = io_listen(backend, &sin,
fd = io_listen(backend,
(struct sockaddr *) &sin, sizeof(sin),
make_listen_callback(backend, c, e),
e);
......@@ -226,7 +227,8 @@ do_listen_connection(struct command *s,
}
/* FIXME: Asyncronous dns lookups should go here */
fd = io_listen(self->backend, &sin,
fd = io_listen(self->backend,
(struct sockaddr *) &sin, sizeof(sin),
make_listen_callback
(self->backend,
make_apply(self->callback,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment