diff options
author | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
---|---|---|
committer | Gaël PORTAY <gael.portay@gmail.com> | 2015-05-05 20:42:38 +0200 |
commit | 9fdab3ced8374b991bfadce0056cf5bdf7cfb3d6 (patch) | |
tree | 5da161bb2372d7a203dd39c616701ae090bb730d /tcp-accept.c | |
parent | ef0aac432c986f52a1b973bcd73ddf7324e0e70f (diff) | |
parent | 6e15e75391fc117125f50efd9f3d8ed646596da9 (diff) |
Merge branch 'fix-pointer-sign-warnings' into fix-warnings
Diffstat (limited to 'tcp-accept.c')
-rw-r--r-- | tcp-accept.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tcp-accept.c b/tcp-accept.c index 35be32d..fc9b4c1 100644 --- a/tcp-accept.c +++ b/tcp-accept.c @@ -75,7 +75,7 @@ static void tcp_acceptor(struct Listener *listener, int sock) { } 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,11 +94,11 @@ static void tcp_acceptor(struct Listener *listener, int sock) { 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 */ - buf_putstring(ses.writepayload, ipstring, strlen(ipstring)); + buf_putstring(ses.writepayload, (const unsigned char *)ipstring, strlen(ipstring)); /* originator port */ buf_putint(ses.writepayload, atol(portstring)); |