Add channel_write_stderr prototype to the right header file.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
Этот коммит содержится в:
родитель
debfd1f3a3
Коммит
60837b1538
@ -285,6 +285,7 @@ int channel_request_env(ssh_channel channel, const char *name, const char *value
|
||||
int channel_request_exec(ssh_channel channel, const char *cmd);
|
||||
int channel_request_sftp(ssh_channel channel);
|
||||
int channel_write(ssh_channel channel, const void *data, uint32_t len);
|
||||
int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len);
|
||||
int channel_send_eof(ssh_channel channel);
|
||||
int channel_is_eof(ssh_channel channel);
|
||||
int channel_read(ssh_channel channel, void *dest, uint32_t count, int is_stderr);
|
||||
|
@ -174,8 +174,6 @@ char *ssh_message_service_service(SSH_MESSAGE *msg);
|
||||
void ssh_set_message_callback(SSH_SESSION *session,
|
||||
int(*ssh_message_callback)(ssh_session session, struct ssh_message *msg));
|
||||
|
||||
int channel_write_stderr(ssh_channel channel, const void *data, uint32_t len);
|
||||
|
||||
char *ssh_message_channel_request_open_originator(SSH_MESSAGE *msg);
|
||||
int ssh_message_channel_request_open_originator_port(SSH_MESSAGE *msg);
|
||||
char *ssh_message_channel_request_open_destination(SSH_MESSAGE *msg);
|
||||
|
@ -858,7 +858,8 @@ error:
|
||||
return rc;
|
||||
}
|
||||
|
||||
int channel_write_common(ssh_channel channel, const void *data, uint32_t len, int is_stderr) {
|
||||
static int channel_write_common(ssh_channel channel, const void *data,
|
||||
uint32_t len, int is_stderr) {
|
||||
SSH_SESSION *session = channel->session;
|
||||
int origlen = len;
|
||||
int effectivelen;
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user