Mercurial > dropbear
changeset 1097:93e29b0ef8dc
Turn start_send_channel_request()'s type argument into char *
author | Gaël PORTAY <gael.portay@gmail.com> |
---|---|
date | Sat, 02 May 2015 13:58:05 +0200 |
parents | a9e4d66ffb2c |
children | f95b6e87cd0c |
files | channel.h cli-chansession.c common-channel.c |
diffstat | 3 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/channel.h Sat May 02 13:48:16 2015 +0200 +++ b/channel.h Sat May 02 13:58:05 2015 +0200 @@ -135,7 +135,7 @@ void recv_msg_channel_open_confirmation(); void recv_msg_channel_open_failure(); #endif -void start_send_channel_request(struct Channel *channel, unsigned char *type); +void start_send_channel_request(struct Channel *channel, char *type); void send_msg_request_success(); void send_msg_request_failure();
--- a/cli-chansession.c Sat May 02 13:48:16 2015 +0200 +++ b/cli-chansession.c Sat May 02 13:58:05 2015 +0200 @@ -305,7 +305,7 @@ static void send_chansess_shell_req(struct Channel *channel) { - unsigned char* reqtype = NULL; + char* reqtype = NULL; TRACE(("enter send_chansess_shell_req"))
--- a/common-channel.c Sat May 02 13:48:16 2015 +0200 +++ b/common-channel.c Sat May 02 13:58:05 2015 +0200 @@ -1244,12 +1244,12 @@ } void start_send_channel_request(struct Channel *channel, - unsigned char *type) { + char *type) { CHECKCLEARTOWRITE(); buf_putbyte(ses.writepayload, SSH_MSG_CHANNEL_REQUEST); buf_putint(ses.writepayload, channel->remotechan); - buf_putstring(ses.writepayload, type, strlen(type)); + buf_putstring(ses.writepayload, (const unsigned char *) type, strlen(type)); }