From 0018d755c4a834704217464879bfd699d077664b Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Mon, 7 Jan 2008 17:20:49 +0100 Subject: [PATCH] Fix gcc-warning on Solaris. net.c:334: warning: missing braces around initializer --- net.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net.c b/net.c index 7f8d596d..674b8c64 100644 --- a/net.c +++ b/net.c @@ -331,7 +331,7 @@ char *remote_name(int sockfd) */ struct in_addr extract_v4_addr(const struct sockaddr_storage *ss) { - struct in_addr ia = { 0 }; + struct in_addr ia = {.s_addr = 0}; if (ss->ss_family == AF_INET) ia.s_addr = ((struct sockaddr_in *)ss)->sin_addr.s_addr; -- 2.39.5