浏览代码

netfilter: xtables: remove duplicate member

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>
Jan Engelhardt 14 年之前
父节点
当前提交
ba12b130a6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      include/linux/netfilter/xt_connlimit.h

+ 1 - 1
include/linux/netfilter/xt_connlimit.h

@@ -18,7 +18,7 @@ struct xt_connlimit_info {
 		};
 #endif
 	};
-	unsigned int limit, inverse;
+	unsigned int limit;
 	union {
 		/* revision 0 */
 		unsigned int inverse;