diff common-channel.c @ 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 c45d65392c1a
children f95b6e87cd0c
line wrap: on
line diff
--- 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));
 
 }