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

* src/channel.c (connection_service_command): Use DEFINE_COMMAND,

not DEFINE_COMMAND_SIMPLE.

Rev: src/channel.c:1.100
Rev: src/channel.h:1.67
parent 7c34a7de
......@@ -1639,13 +1639,17 @@ void init_connection_service(struct ssh_connection *connection)
= &global_failure_handler;
}
DEFINE_COMMAND_SIMPLE(connection_service_command, a)
DEFINE_COMMAND(connection_service_command)
(struct command *s UNUSED,
struct lsh_object *a,
struct command_continuation *c,
struct exception_handler *e UNUSED)
{
CAST(ssh_connection, connection, a);
init_connection_service(connection);
return a;
COMMAND_RETURN(c, connection);
}
struct lsh_string *
......
......@@ -410,8 +410,8 @@ struct lsh_string *channel_transmit_extended(struct ssh_channel *channel,
void init_connection_service(struct ssh_connection *connection);
extern struct command_simple connection_service_command;
#define INIT_CONNECTION_SERVICE (&connection_service_command.super.super)
extern struct command connection_service_command;
#define INIT_CONNECTION_SERVICE (&connection_service_command.super)
#endif /* LSH_CHANNEL_H_INCLUDED */
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