From 8c41244627528ba35dc122ed166cc664fee8c4de Mon Sep 17 00:00:00 2001 From: irungentoo Date: Sun, 15 Sep 2013 09:31:27 -0400 Subject: Fixed portablity problems. struct in6_addr member names can differ per platform. --- toxcore/DHT.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/DHT.c') diff --git a/toxcore/DHT.c b/toxcore/DHT.c index 11f25880..32a1d96d 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -564,7 +564,7 @@ static int sendnodes(DHT *dht, IP_Port ip_port, uint8_t *public_key, uint8_t *cl if ((node_ip->family == AF_INET6) && IN6_IS_ADDR_V4MAPPED(&node_ip->ip6)) /* embedded IPv4-in-IPv6 address: return it in regular sendnodes packet */ - nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.s6_addr32[3]; + nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip6.uint32[3]; else if (node_ip->family == AF_INET) nodes4_list[num_nodes_ok].ip_port.ip.uint32 = node_ip->ip4.uint32; else /* shouldn't happen */ -- cgit v1.2.3