diff tcp-accept.c @ 1109:2c646a65a1e3

Turn addr local variable into char *
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 23:03:27 +0200
parents c45d65392c1a
children d7b752525b91
line wrap: on
line diff
--- a/tcp-accept.c	Sat May 02 22:48:11 2015 +0200
+++ b/tcp-accept.c	Sat May 02 23:03:27 2015 +0200
@@ -75,7 +75,7 @@
 	}
 
 	if (send_msg_channel_open_init(fd, tcpinfo->chantype) == DROPBEAR_SUCCESS) {
-		unsigned char* addr = NULL;
+		char* addr = NULL;
 		unsigned int port = 0;
 
 		if (tcpinfo->tcp_type == direct) {
@@ -94,7 +94,7 @@
 		if (addr == NULL) {
 			addr = "localhost";
 		}
-		buf_putstring(ses.writepayload, addr, strlen(addr));
+		buf_putstring(ses.writepayload, (const unsigned char *)addr, strlen(addr));
 		buf_putint(ses.writepayload, port);
 
 		/* originator ip */