diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-03 01:12:24 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:39:14 +0200 |
commit | e5ce3fc51b72d3699f527276ef7c5100bd1c3135 (patch) | |
tree | e2a062d2ccf8254e7523cc41254680c1b73c6fd0 /svr-chansession.c | |
parent | 9f975113564ba06a521aab33f0ab30206ab6d7c8 (diff) |
Turn type local variable into char *
Diffstat (limited to 'svr-chansession.c')
-rw-r--r-- | svr-chansession.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/svr-chansession.c b/svr-chansession.c index a27c8f9..c496ff9 100644 --- a/svr-chansession.c +++ b/svr-chansession.c @@ -343,7 +343,7 @@ static void closechansess(struct Channel *channel) { * 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 @@ static void chansessionrequest(struct Channel *channel) { 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) { |