summaryrefslogtreecommitdiff
path: root/toxcore/DHT.c
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2013-09-02 08:59:46 -0700
committerirungentoo <irungentoo@gmail.com>2013-09-02 08:59:46 -0700
commit25480852ac1cb868c2138eb7be5decc2b8271682 (patch)
tree8044a5711a679a6b0722cd6c07ccd31b0e0664e5 /toxcore/DHT.c
parent385772065899f7263b6edee15e6f83f1ecd4245e (diff)
parent7c11070b32e93c4ded135a8509c1064d0d7a0f53 (diff)
Merge pull request #554 from nurupo/master
Fixed missing field initializer warnings
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 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,
1070 for (i = dht->friends_list[friend_num].punching_index; i != top; i++) { 1070 for (i = dht->friends_list[friend_num].punching_index; i != top; i++) {
1071 /* TODO: improve port guessing algorithm */ 1071 /* TODO: improve port guessing algorithm */
1072 uint16_t port = port_list[(i / 2) % numports] + (i / (2 * numports)) * ((i % 2) ? -1 : 1); 1072 uint16_t port = port_list[(i / 2) % numports] + (i / (2 * numports)) * ((i % 2) ? -1 : 1);
1073 IP_Port pinging = {{ip, htons(port)}}; 1073 IP_Port pinging = {{ip, htons(port), 0}};
1074 send_ping_request(dht->ping, dht->c, pinging, dht->friends_list[friend_num].client_id); 1074 send_ping_request(dht->ping, dht->c, pinging, dht->friends_list[friend_num].client_id);
1075 } 1075 }
1076 1076