projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a48389
)
bridge: make ebt_table const
author
Bhumika Goyal
<bhumirks@gmail.com>
Fri, 25 Aug 2017 14:21:42 +0000
(19:51 +0530)
committer
David S. Miller
<davem@davemloft.net>
Mon, 28 Aug 2017 18:30:02 +0000
(11:30 -0700)
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>
net/bridge/netfilter/ebtable_nat.c
patch
|
blob
|
history
diff --git
a/net/bridge/netfilter/ebtable_nat.c
b/net/bridge/netfilter/ebtable_nat.c
index 2f7a4f314406382a655a94d2ce384226ab906bfb..30dedcb56adef41835b7596564627b016eb6c48e 100644
(file)
--- a/
net/bridge/netfilter/ebtable_nat.c
+++ b/
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,