浏览代码

bridge: make ebt_table const

Make this const as it is only passed to a const argument of the function
ebt_register_table.

Signed-off-by: Bhumika Goyal <bhumirks@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Bhumika Goyal 8 年之前
父节点
当前提交
eb73ddebe9
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/bridge/netfilter/ebtable_nat.c

+ 1 - 1
net/bridge/netfilter/ebtable_nat.c

@@ -48,7 +48,7 @@ static int check(const struct ebt_table_info *info, unsigned int valid_hooks)
 	return 0;
 }
 
-static struct ebt_table frame_nat = {
+static const struct ebt_table frame_nat = {
 	.name		= "nat",
 	.table		= &initial_table,
 	.valid_hooks	= NAT_VALID_HOOKS,