# HG changeset patch # User Gaƫl PORTAY # Date 1430604096 -7200 # Node ID 6b6ed65e99b1f475aeead09c048d474e32fc9d9a # Parent 3d9519ec2b855d86ba98cc8ad8b730c171bafbef Turn type and term local variables into char * diff -r 3d9519ec2b85 -r 6b6ed65e99b1 cli-chansession.c --- 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();