summaryrefslogtreecommitdiffhomepage
path: root/common-channel.c
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-05 20:39:13 +0200
commit50b14f696c960d2658cd6848cc8426311e7a452c (patch)
tree21a1b0d3401621a135a1320735e98240f5060aed /common-channel.c
parentc239baf801168d02dc781bcc7d1de42d2da96ec2 (diff)
Turn start_send_channel_request()'s type argument into char *
Diffstat (limited to 'common-channel.c')
-rw-r--r--common-channel.c4
1 files changed, 2 insertions, 2 deletions
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));
}