Commit 9a9deda7 authored by Niels Möller's avatar Niels Möller
Browse files

* src/io_commands.c (collect_listen): Use CAST_SUBTYPE rather than

CAST.

Rev: src/io_commands.c:1.9
parent 10a93597
......@@ -125,6 +125,7 @@ do_listen_connection(struct command *s,
if (!address_info2sockaddr_in(&sin, address))
return COMMAND_RETURN(c, NULL);
/* FIXME: Asyncronous dns lookups should go here */
return COMMAND_RETURN(c, io_listen
(self->backend, &sin,
make_listen_command_callback
......@@ -150,7 +151,7 @@ collect_listen(struct collect_info_2 *info,
struct lsh_object *b,
struct lsh_object *c)
{
CAST(command, callback, c);
CAST_SUBTYPE(command, callback, c);
CAST(io_backend, backend, b);
assert(!info);
......
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