From 25563ac07005448706d294dccdabf14fbe01d100 Mon Sep 17 00:00:00 2001 From: Kostya Date: Fri, 30 Aug 2013 03:28:50 -0400 Subject: Fixed build errors. --- toxcore/net_crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toxcore/net_crypto.c') diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 1f00144a..87c98089 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -422,7 +422,7 @@ int crypto_connect(Net_Crypto *c, uint8_t *public_key, IP_Port ip_port) if (id != -1) { IP_Port c_ip = connection_ip(c->lossless_udp, c->crypto_connections[id].number); - if (c_ip.ip.i == ip_port.ip.i && c_ip.port == ip_port.port) + if (c_ip.ip.uint32 == ip_port.ip.uint32 && c_ip.port == ip_port.port) return -1; } -- cgit v1.2.3