summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorKostya <kostyarjcnz@gmail.com>2013-08-30 02:51:15 -0400
committerKostya <kostyarjcnz@gmail.com>2013-08-30 02:51:15 -0400
commitd2d1af2ce91d7a774534be5864096e04af3621ae (patch)
treec93e1a79dfa66a20fdfc96180776b04989a1dcf2 /toxcore/DHT.c
parent205ba48a5addbe43b7693a28c7ccf3a0501c8111 (diff)
Made IP_Port a union.
Diffstat (limited to 'toxcore/DHT.c')
-rw-r--r--toxcore/DHT.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/DHT.c b/toxcore/DHT.c
index 937e6196..78ea5b8c 100644
--- a/toxcore/DHT.c
+++ b/toxcore/DHT.c
@@ -675,7 +675,7 @@ IP_Port DHT_getfriendip(DHT *dht, uint8_t *client_id)
675{ 675{
676 uint32_t i, j; 676 uint32_t i, j;
677 uint64_t temp_time = unix_time(); 677 uint64_t temp_time = unix_time();
678 IP_Port empty = {{{0}}, 0}; 678 IP_Port empty = { .ip = {0}, .port = 0, .padding = 0 };
679 679
680 for (i = 0; i < dht->num_friends; ++i) { 680 for (i = 0; i < dht->num_friends; ++i) {
681 /* Equal */ 681 /* Equal */