netfilter: ipset: The unnamed union initialization may lead to compilation error
authorJozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Fri, 18 Oct 2013 09:41:57 +0000 (11:41 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 22 Oct 2013 08:14:01 +0000 (10:14 +0200)
commit1a869205c75cb222263fa04f200485ffbe9eaadf
tree26b39361ecd210afbe95cebd3d43baccba58cb4c
parent93302880d8a3e5dc6b7da3f9825beb839152c940
netfilter: ipset: The unnamed union initialization may lead to compilation error

The unnamed union should be possible to be initialized directly, but
unfortunately it's not so:

/usr/src/ipset/kernel/net/netfilter/ipset/ip_set_hash_netnet.c: In
function ?hash_netnet4_kadt?:
/usr/src/ipset/kernel/net/netfilter/ipset/ip_set_hash_netnet.c:141:
error: unknown field ?cidr? specified in initializer

Reported-by: Husnu Demir <hdemir@metu.edu.tr>
Signed-off-by: Jozsef Kadlecsik <kadlec@blackhole.kfki.hu>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
net/netfilter/ipset/ip_set_hash_netnet.c
net/netfilter/ipset/ip_set_hash_netportnet.c