diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-30 12:59:17 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-30 12:59:17 -0400 |
commit | 0bd4edc0dbe67f32de7e63232ba169619e363ec8 (patch) | |
tree | beaef77165a595f6b97ea0980bb1e90e86ac24d8 /toxcore/LAN_discovery.c | |
parent | bbc6b095791e187fd99943f9601c49d08c8b867f (diff) |
Compiler fix.
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 33570c73..537f6fec 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 = {.ip = broadcast_ip(), .port = port}; | 147 | IP_Port ip_port = {{broadcast_ip(), port}}; |
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 | ||