diff options
author | Maxim Biro <nurupo.contributions@gmail.com> | 2013-09-02 11:41:10 -0400 |
---|---|---|
committer | Maxim Biro <nurupo.contributions@gmail.com> | 2013-09-02 11:41:10 -0400 |
commit | 7c11070b32e93c4ded135a8509c1064d0d7a0f53 (patch) | |
tree | 166e19a112e5679ae370efe04c4055a8f761ae74 /toxcore/LAN_discovery.c | |
parent | 52336565612207fdb2d2068989da936b5b83ceeb (diff) |
Fixed missing field initializers warnings
Diffstat (limited to 'toxcore/LAN_discovery.c')
-rw-r--r-- | toxcore/LAN_discovery.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/LAN_discovery.c b/toxcore/LAN_discovery.c index 80cebcad..4662bc8e 100644 --- a/toxcore/LAN_discovery.c +++ b/toxcore/LAN_discovery.c | |||
@@ -144,7 +144,7 @@ int send_LANdiscovery(uint16_t port, Net_Crypto *c) | |||
144 | uint8_t data[crypto_box_PUBLICKEYBYTES + 1]; | 144 | uint8_t data[crypto_box_PUBLICKEYBYTES + 1]; |
145 | data[0] = NET_PACKET_LAN_DISCOVERY; | 145 | data[0] = NET_PACKET_LAN_DISCOVERY; |
146 | memcpy(data + 1, c->self_public_key, crypto_box_PUBLICKEYBYTES); | 146 | memcpy(data + 1, c->self_public_key, crypto_box_PUBLICKEYBYTES); |
147 | IP_Port ip_port = {{broadcast_ip(), port}}; | 147 | IP_Port ip_port = {{broadcast_ip(), port, 0}}; |
148 | return sendpacket(c->lossless_udp->net->sock, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES); | 148 | return sendpacket(c->lossless_udp->net->sock, ip_port, data, 1 + crypto_box_PUBLICKEYBYTES); |
149 | } | 149 | } |
150 | 150 | ||