Fix compiler warning about char signedness in buffer pointer
authorDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 12 Dec 2011 22:34:26 +0000 (22:34 +0000)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 12 Dec 2011 22:34:26 +0000 (22:34 +0000)
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
tun.c

diff --git a/tun.c b/tun.c
index 2f6f2ae..2a7552e 100644 (file)
--- a/tun.c
+++ b/tun.c
@@ -623,7 +623,7 @@ int tun_mainloop(struct openconnect_info *vpninfo, int *timeout)
                                int flags = 0;
                                int ret;
                                
-                               strb.buf = out_pkt->data;
+                               strb.buf = (caddr_t)out_pkt->data;
                                strb.maxlen = len;
                                strb.len = 0;
                                ret = getmsg(vpninfo->tun_fd, NULL, &strb, &flags);