From d2d1af2ce91d7a774534be5864096e04af3621ae Mon Sep 17 00:00:00 2001 From: Kostya Date: Fri, 30 Aug 2013 02:51:15 -0400 Subject: Made IP_Port a union. --- 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 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) { uint32_t i, j; uint64_t temp_time = unix_time(); - IP_Port empty = {{{0}}, 0}; + IP_Port empty = { .ip = {0}, .port = 0, .padding = 0 }; for (i = 0; i < dht->num_friends; ++i) { /* Equal */ -- cgit v1.2.3