From 7c11070b32e93c4ded135a8509c1064d0d7a0f53 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Mon, 2 Sep 2013 11:41:10 -0400 Subject: Fixed missing field initializers warnings --- 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 4ed437bb..19f8a30c 100644 --- a/toxcore/DHT.c +++ b/toxcore/DHT.c @@ -1070,7 +1070,7 @@ static void punch_holes(DHT *dht, IP ip, uint16_t *port_list, uint16_t numports, for (i = dht->friends_list[friend_num].punching_index; i != top; i++) { /* TODO: improve port guessing algorithm */ uint16_t port = port_list[(i / 2) % numports] + (i / (2 * numports)) * ((i % 2) ? -1 : 1); - IP_Port pinging = {{ip, htons(port)}}; + IP_Port pinging = {{ip, htons(port), 0}}; send_ping_request(dht->ping, dht->c, pinging, dht->friends_list[friend_num].client_id); } -- cgit v1.2.3