Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
LSH
lsh
Commits
79e9d0e1
Commit
79e9d0e1
authored
Dec 07, 1999
by
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/channel.c
View file @
79e9d0e1
...
...
@@ -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
)
{
...
...
src/channel.h
View file @
79e9d0e1
...
...
@@ -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 */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment