diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-03 00:01:36 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:14 +0200 |
commit | bfd730aa4c2a1c3d7bc46dd4a870a5fea3e91da8 (patch) | |
tree | dc3cb0bb386ba1418b71a2b3a24fc2d9fce98771 | |
parent | e3c6a86b1e458bd4abb592ddd14ca10fd0893dbd (diff) |
Turn type and term local variables into char *
-rw-r--r-- | cli-chansession.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/cli-chansession.c b/cli-chansession.c index 4e55287..7bbca1e 100644 --- a/cli-chansession.c +++ b/cli-chansession.c @@ -56,12 +56,12 @@ const struct ChanType clichansess = { 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 @@ void cli_chansess_winchange() { 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 @@ static void send_chansess_pty_req(struct Channel *channel) { 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(); |