diff tcp-accept.c @ 1094:c45d65392c1a

Fix pointer differ in signess warnings [-Werror=pointer-sign]
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 15:59:06 +0200
parents 5daedffd0769
children 2c646a65a1e3
line wrap: on
line diff
--- a/tcp-accept.c	Sat May 02 16:02:22 2015 +0200
+++ b/tcp-accept.c	Sat May 02 15:59:06 2015 +0200
@@ -98,7 +98,7 @@
 		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));