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/network.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'toxcore/network.c') diff --git a/toxcore/network.c b/toxcore/network.c index 34775570..4f1f1a3a 100644 --- a/toxcore/network.c +++ b/toxcore/network.c @@ -62,7 +62,7 @@ uint32_t random_int(void) */ int sendpacket(int sock, IP_Port ip_port, uint8_t *data, uint32_t length) { - ADDR addr = {AF_INET, ip_port.port, ip_port.ip}; + ADDR addr = {AF_INET, ip_port.port, ip_port.ip, {0}}; return sendto(sock, (char *) data, length, 0, (struct sockaddr *)&addr, sizeof(addr)); } @@ -207,7 +207,7 @@ Networking_Core *new_networking(IP ip, uint16_t port) #endif /* Bind our socket to port PORT and address 0.0.0.0 */ - ADDR addr = {AF_INET, htons(port), ip}; + ADDR addr = {AF_INET, htons(port), ip, {0}}; bind(temp->sock, (struct sockaddr *)&addr, sizeof(addr)); return temp; } -- cgit v1.2.3