aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGarrett D'Amore <garrett@damore.org>2017-12-28 16:01:58 -0800
committerGarrett D'Amore <garrett@damore.org>2017-12-28 16:01:58 -0800
commit838d92deabffbaae1b1a9e447d2088f966078726 (patch)
tree68bcc9c412b7c9d1bff94e024178a8318d0ec75d /src
parent76d0674d7b02c42fcd110ce87fa19600191a4eb9 (diff)
downloadnng-838d92deabffbaae1b1a9e447d2088f966078726.tar.gz
nng-838d92deabffbaae1b1a9e447d2088f966078726.tar.bz2
nng-838d92deabffbaae1b1a9e447d2088f966078726.zip
Fix zerotier compilation regression (caused by winsock changes).
Diffstat (limited to 'src')
-rw-r--r--src/transport/zerotier/zerotier.c8
1 files changed, 4 insertions, 4 deletions
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;