diff options
author | Phil Sutter <phil@nwl.cc> | 2019-10-17 22:49:26 +0200 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2019-10-18 11:57:31 +0200 |
commit | eedb0bb2ad01cf1d3af6fe3d644660ab81c1fc29 (patch) | |
tree | afb7d402bbc257d6964dad8e05b21495ede78d1a /iptables/nft-shared.h | |
parent | 4abb44c978d75656f69dd59f24522eb970881ccf (diff) |
xtables-restore: Constify struct nft_xt_restore_cb
There is no need for dynamic callback mangling, so make all instances
static const.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'iptables/nft-shared.h')
-rw-r--r-- | iptables/nft-shared.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/iptables/nft-shared.h b/iptables/nft-shared.h index 5c664150..b062f3e5 100644 --- a/iptables/nft-shared.h +++ b/iptables/nft-shared.h @@ -262,7 +262,7 @@ struct nft_xt_restore_cb { void xtables_restore_parse(struct nft_handle *h, const struct nft_xt_restore_parse *p, - struct nft_xt_restore_cb *cb); + const struct nft_xt_restore_cb *cb); void nft_check_xt_legacy(int family, bool is_ipt_save); #endif |