Commit 79e9d0e1 authored by Niels Möller's avatar Niels Möller
Browse files

* src/channel.c (connection_service_command): Use COMMAND_SIMPLE.

Rev: src/channel.c:1.62
Rev: src/channel.h:1.47
parent 174571fc
......@@ -1333,13 +1333,10 @@ do_channel_failure(struct packet_handler *closure UNUSED,
}
}
static void
do_connection_service(struct command *s UNUSED,
struct lsh_object *x,
struct command_continuation *c,
struct exception_handler *e UNUSED)
COMMAND_SIMPLE(connection_service_command)
{
CAST(ssh_connection, connection, x);
CAST(ssh_connection, connection, a);
struct channel_table *table;
......@@ -1413,12 +1410,13 @@ do_connection_service(struct command *s UNUSED,
global_failure->handler = do_global_request_failure;
connection->dispatch[SSH_MSG_REQUEST_FAILURE] = global_failure;
COMMAND_RETURN(c, connection);
return a;
}
#if 0
struct command
connection_service = STATIC_COMMAND(do_connection_service);
#endif
struct lsh_string *format_channel_close(struct ssh_channel *channel)
{
......
......@@ -348,7 +348,8 @@ struct lsh_string *channel_transmit_extended(struct ssh_channel *channel,
UINT32 type,
struct lsh_string *data);
extern struct command connection_service;
extern struct command_simple connection_service_command;
#define INIT_CONNECTION_SERVICE (&connection_service_command.super.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