Turn type local variable into char *

This commit is contained in:
Gaël PORTAY 2015-05-03 01:12:24 +02:00
parent 9f97511356
commit e5ce3fc51b

View File

@ -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) {