diff --git a/channel.h b/channel.h index d16cb033ba258215f9c04b51d1f8349762f59572..c73fbe8c90a7f414973b842d8dbcc75279677255 100644 --- a/channel.h +++ b/channel.h @@ -135,7 +135,7 @@ int send_msg_channel_open_init(int fd, const struct ChanType *type); 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 --git a/cli-chansession.c b/cli-chansession.c index 9895f13a083ffd6de03745ae892129b5217fa675..4e552874bf045a4dfe57cd7a9f3b4d820090fe3e 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -305,7 +305,7 @@ static void send_chansess_pty_req(struct Channel *channel) { static void send_chansess_shell_req(struct Channel *channel) { - unsigned char* reqtype = NULL; + char* reqtype = NULL; TRACE(("enter send_chansess_shell_req")) diff --git a/common-channel.c b/common-channel.c index a2ab985a76ae57904480df3030fd6b39eff4f12f..6d69de99dda03bd77ed4419513b6a54849c21c5f 100644 --- a/common-channel.c +++ b/common-channel.c @@ -1244,12 +1244,12 @@ struct Channel* get_any_ready_channel() { } 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)); }