From 4d839bcebab5e2e0fd5f661305d8b9b76ae4903b Mon Sep 17 00:00:00 2001 From: Carlos Maddela Date: Wed, 8 Jun 2016 11:50:30 +1000 Subject: [PATCH] Fix trivial compilation warning Fix "missing braces around initializer" warning. --- src/ip_type.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ip_type.c b/src/ip_type.c index 8b4e044..cbe4815 100644 --- a/src/ip_type.c +++ b/src/ip_type.c @@ -1,5 +1,5 @@ #include "ip_type.h" const ip_type ip_type_invalid = { .addr.v4.as_int = -1 }; -const ip_type ip_type_localhost = { .addr.v4 = {127, 0, 0, 1} }; +const ip_type ip_type_localhost = { .addr.v4.octet = {127, 0, 0, 1} };