netfilter: xtables: remove duplicate member
authorJan Engelhardt <jengelh@medozas.de>
Thu, 20 Jan 2011 13:01:12 +0000 (14:01 +0100)
committerJan Engelhardt <jengelh@medozas.de>
Thu, 20 Jan 2011 13:01:12 +0000 (14:01 +0100)
Accidentally missed removing the old out-of-union "inverse" member,
which caused the struct size to change which then gives size mismatch
warnings when using an old iptables.

It is interesting to see that gcc did not warn about this before.
(Filed http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47376 )

Signed-off-by: Jan Engelhardt <jengelh@medozas.de>
include/linux/netfilter/xt_connlimit.h

index 8884efc605c7b91771e037a24242119e0ce74420..ab1d3b57fff7937fb5e9926dff8609e4799d4c12 100644 (file)
@@ -18,7 +18,7 @@ struct xt_connlimit_info {
                };
 #endif
        };
-       unsigned int limit, inverse;
+       unsigned int limit;
        union {
                /* revision 0 */
                unsigned int inverse;