From 838d92deabffbaae1b1a9e447d2088f966078726 Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Thu, 28 Dec 2017 16:01:58 -0800 Subject: Fix zerotier compilation regression (caused by winsock changes). --- src/transport/zerotier/zerotier.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') diff --git a/src/transport/zerotier/zerotier.c b/src/transport/zerotier/zerotier.c index 16a29da1..3cb2871a 100644 --- a/src/transport/zerotier/zerotier.c +++ b/src/transport/zerotier/zerotier.c @@ -169,10 +169,10 @@ struct zt_node { nni_idhash * zn_rpipes; nni_idhash * zn_peers; // indexed by remote address nni_aio * zn_rcv4_aio; - char * zn_rcv4_buf; + uint8_t * zn_rcv4_buf; nng_sockaddr zn_rcv4_addr; nni_aio * zn_rcv6_aio; - char * zn_rcv6_buf; + uint8_t * zn_rcv6_buf; nng_sockaddr zn_rcv6_addr; nni_thr zn_bgthr; nni_time zn_bgtime; @@ -1312,7 +1312,7 @@ zt_wire_packet_send(ZT_Node *node, void *userptr, void *thr, int64_t socket, zt_node * ztn = userptr; nni_plat_udp * udp; uint16_t port; - char * buf; + uint8_t * buf; zt_send_hdr * hdr; NNI_ARG_UNUSED(thr); @@ -1355,7 +1355,7 @@ zt_wire_packet_send(ZT_Node *node, void *userptr, void *thr, int64_t socket, buf += sizeof(*hdr); memcpy(buf, data, len); - nni_aio_set_data(aio, hdr, 0); + nni_aio_set_data(aio, 0, hdr); hdr->sa = addr; hdr->len = len; -- cgit v1.2.3-70-g09d2