[nf-next 2/2] netfilter: Resolve missing-field-initializers warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Mark Rustad <mark.d.rustad@xxxxxxxxx>

Resolve missing-field-initializers warnings by avoiding
implicit inner field initializer. The more explicit form
avoids the warning.

Signed-off-by: Mark Rustad <mark.d.rustad@xxxxxxxxx>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@xxxxxxxxx>
---
 net/netfilter/xt_set.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net/netfilter/xt_set.c b/net/netfilter/xt_set.c
index 80c2e2d..2671cc2 100644
--- a/net/netfilter/xt_set.c
+++ b/net/netfilter/xt_set.c
@@ -43,7 +43,7 @@ struct ip_set_adt_opt n = {		\
 	.dim = d,			\
 	.flags = fs,			\
 	.cmdflags = cfs,		\
-	.ext.timeout = t,		\
+	.ext = { .timeout = t }		\
 }
 
 /* Revision 0 interface: backward compatible with netfilter/iptables */
-- 
1.9.3

--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netfitler Users]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux