changeset 1103:303e27a78d2e

Turn type local variable into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sun, 03 May 2015 01:12:24 +0200
parents ae63de5caf81
children 5806c644469a
files svr-chansession.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/svr-chansession.c	Sat May 02 16:01:13 2015 +0200
+++ b/svr-chansession.c	Sun May 03 01:12:24 2015 +0200
@@ -343,7 +343,7 @@
  * or x11/authagent forwarding. These are passed to appropriate handlers */
 static void chansessionrequest(struct Channel *channel) {
 
-	unsigned char * type = NULL;
+	char * type = NULL;
 	unsigned int typelen;
 	unsigned char wantreply;
 	int ret = 1;
@@ -351,7 +351,7 @@
 
 	TRACE(("enter chansessionrequest"))
 
-	type = buf_getstring(ses.payload, &typelen);
+	type = (char *) buf_getstring(ses.payload, &typelen);
 	wantreply = buf_getbool(ses.payload);
 
 	if (typelen > MAX_NAME_LEN) {