提交 28094864 编写于 作者: T Thomas Graf 提交者: David S. Miller

[NETFILTER]: x_tables: Fix typos after conversion to use mass registation helper

Signed-off-by: NThomas Graf <tgraf@suug.ch>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3fd091e7
......@@ -130,14 +130,14 @@ static struct xt_target xt_connsecmark_target[] = {
static int __init xt_connsecmark_init(void)
{
need_conntrack();
return xt_register_targets(xt_connsecmark_targets,
ARRAY_SIZE(xt_connsecmark_targets));
return xt_register_targets(xt_connsecmark_target,
ARRAY_SIZE(xt_connsecmark_target));
}
static void __exit xt_connsecmark_fini(void)
{
xt_unregister_targets(xt_connsecmark_targets,
ARRAY_SIZE(xt_connsecmark_targets));
xt_unregister_targets(xt_connsecmark_target,
ARRAY_SIZE(xt_connsecmark_target));
}
module_init(xt_connsecmark_init);
......
......@@ -111,7 +111,7 @@ static int checkentry(const char *tablename, const void *entry,
return 1;
}
static struct xt_target xt_secmark_target = {
static struct xt_target xt_secmark_target[] = {
{
.name = "SECMARK",
.family = AF_INET,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册