# HG changeset patch # User Gaƫl PORTAY # Date 1430567885 -7200 # Node ID 93e29b0ef8dcde1c7190870fe5019fc472b0d270 # Parent a9e4d66ffb2cbe49ed647d68c9560e3e6b10891c Turn start_send_channel_request()'s type argument into char * diff -r a9e4d66ffb2c -r 93e29b0ef8dc channel.h --- 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(); diff -r a9e4d66ffb2c -r 93e29b0ef8dc cli-chansession.c --- 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")) diff -r a9e4d66ffb2c -r 93e29b0ef8dc common-channel.c --- 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)); }