Commit 4d407909 authored by Niels Möller's avatar Niels Möller
Browse files

* src/lsh-writekey.c: Don't use DEFINE_COMMAND_SIMPLE.

* src/lsh.c: Likewise.
* src/lshd.c: Likewise.
* src/lshg.c: Likewise.

Rev: src/lshg.c:1.11
parent a30f0ed6
...@@ -43,8 +43,8 @@ ...@@ -43,8 +43,8 @@
#include "lsh_argp.h" #include "lsh_argp.h"
/* Forward declarations */ /* Forward declarations */
struct command_simple options2info; struct command options2info;
#define OPTIONS2INFO (&options2info.super.super) #define OPTIONS2INFO (&options2info.super)
#include "lshg.c.x" #include "lshg.c.x"
...@@ -70,12 +70,17 @@ make_options(struct io_backend *backend, ...@@ -70,12 +70,17 @@ make_options(struct io_backend *backend,
return self; return self;
} }
DEFINE_COMMAND_SIMPLE(options2info, a) DEFINE_COMMAND(options2info)
(struct command *s UNUSED,
struct lsh_object *a,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{ {
CAST(lshg_options, self, a); CAST(lshg_options, self, a);
return &make_gateway_address(self->super.local_user, COMMAND_RETURN(c,
make_gateway_address(self->super.local_user,
self->super.user, self->super.user,
self->super.remote)->super; self->super.remote));
} }
......
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