]> git.ipfire.org Git - thirdparty/iptables.git/commit
nft: Use ARRAY_SIZE() macro in nft_strerror()
authorPhil Sutter <phil@nwl.cc>
Thu, 17 Oct 2019 21:55:02 +0000 (23:55 +0200)
committerPhil Sutter <phil@nwl.cc>
Wed, 23 Oct 2019 12:05:17 +0000 (14:05 +0200)
commitffb339224f71871d015e4b57ea8dbaf9fd4f8aad
tree5b2bfd8420c37682a08039a4ac2d348e29fb7ce1
parent4e470fa34761085144640fb561a9ad26b2cde382
nft: Use ARRAY_SIZE() macro in nft_strerror()

Variable 'table' is an array of type struct table_struct, so this is a
classical use-case for ARRAY_SIZE() macro.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Acked-by: Pablo Neira Ayuso <pablo@netfilter.org>
iptables/nft.c