summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGa?l PORTAY <gael.portay@gmail.com>2015-05-02 13:58:05 +0200
committerGa?l PORTAY <gael.portay@gmail.com>2015-05-02 13:58:05 +0200
commit0b6e6e525946ae5a5175b07e300f4c56c0111adb (patch)
treee71c5e8da70e7fe17d292d7c720475216a8aa939
parent826d30ea9b6124a8306feb5776e15e6f1c0d2598 (diff)
downloaddropbear-0b6e6e525946ae5a5175b07e300f4c56c0111adb.tar.gz
Turn start_send_channel_request()'s type argument into char *
-rw-r--r--channel.h2
-rw-r--r--cli-chansession.c2
-rw-r--r--common-channel.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/channel.h b/channel.h
index d16cb03..c73fbe8 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 9895f13..4e55287 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 a2ab985..6d69de9 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));
}