diff cli-chansession.c @ 1117:6b6ed65e99b1

Turn type and term local variables into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sun, 03 May 2015 00:01:36 +0200
parents 93e29b0ef8dc
children aaf576b27a10
line wrap: on
line diff
--- a/cli-chansession.c	Sat May 02 23:54:06 2015 +0200
+++ b/cli-chansession.c	Sun May 03 00:01:36 2015 +0200
@@ -56,12 +56,12 @@
 
 static void cli_chansessreq(struct Channel *channel) {
 
-	unsigned char* type = NULL;
+	char* type = NULL;
 	int wantreply;
 
 	TRACE(("enter cli_chansessreq"))
 
-	type = buf_getstring(ses.payload, NULL);
+	type = (char *) buf_getstring(ses.payload, NULL);
 	wantreply = buf_getbool(ses.payload);
 
 	if (strcmp(type, "exit-status") == 0) {
@@ -272,7 +272,7 @@
 
 static void send_chansess_pty_req(struct Channel *channel) {
 
-	unsigned char* term = NULL;
+	char* term = NULL;
 
 	TRACE(("enter send_chansess_pty_req"))
 
@@ -286,7 +286,7 @@
 	if (term == NULL) {
 		term = "vt100"; /* Seems a safe default */
 	}
-	buf_putstring(ses.writepayload, term, strlen(term));
+	buf_putstring(ses.writepayload, (const unsigned char *)term, strlen(term));
 
 	/* Window size */
 	put_winsize();