Fix trivial compilation warning

Fix "missing braces around initializer" warning.
This commit is contained in:
Carlos Maddela 2016-06-08 11:50:30 +10:00 committed by rofl0r
parent f1e5f2ba01
commit 993dfc059d

View File

@ -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} };