summaryrefslogtreecommitdiff
path: root/toxcore/net_crypto.c
diff options
context:
space:
mode:
authorKostya <kostyarjcnz@gmail.com>2013-08-30 03:28:50 -0400
committerKostya <kostyarjcnz@gmail.com>2013-08-30 03:28:50 -0400
commit25563ac07005448706d294dccdabf14fbe01d100 (patch)
tree2166609dfed18c1e4625c05ac0478220dd842d87 /toxcore/net_crypto.c
parent790867d984841ba0e28c4100615590870895e7d4 (diff)
Fixed build errors.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r--toxcore/net_crypto.c2
1 files changed, 1 insertions, 1 deletions
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)
422 if (id != -1) { 422 if (id != -1) {
423 IP_Port c_ip = connection_ip(c->lossless_udp, c->crypto_connections[id].number); 423 IP_Port c_ip = connection_ip(c->lossless_udp, c->crypto_connections[id].number);
424 424
425 if (c_ip.ip.i == ip_port.ip.i && c_ip.port == ip_port.port) 425 if (c_ip.ip.uint32 == ip_port.ip.uint32 && c_ip.port == ip_port.port)
426 return -1; 426 return -1;
427 } 427 }
428 428