Commit bf1959d1 authored by Niels Möller's avatar Niels Möller

* src/lsh_proxy.c: Use the DEFINE_COMMAND_SIMPLE macro.

Rev: src/lsh_proxy.c:1.16
parent 8c72e26e
......@@ -184,14 +184,14 @@ make_lsh_proxy_options(struct io_backend *backend,
}
/* Port to listen on */
COMMAND_SIMPLE(options2local)
DEFINE_COMMAND_SIMPLE(options2local, a)
{
CAST(lsh_proxy_options, options, a);
return &options->local->super;
}
/* alist of signature algorithms */
COMMAND_SIMPLE(options2signature_algorithms)
DEFINE_COMMAND_SIMPLE(options2signature_algorithms, a)
{
CAST(lsh_proxy_options, options, a);
return &options->signature_algorithms->super;
......@@ -483,7 +483,7 @@ make_proxy_destination_command(struct lsh_proxy_options *options)
return &self->super;
}
COMMAND_SIMPLE(proxy_destination)
DEFINE_COMMAND_SIMPLE(proxy_destination, a)
{
CAST(lsh_proxy_options, options, a);
return &make_proxy_destination_command(options)->super;
......
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