diff options
author | Phil Sutter <phil@nwl.cc> | 2022-11-24 16:24:05 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2022-12-13 14:59:55 +0100 |
commit | e432477f5c013d0ca56f9fc5f9ac7cf35301b0b9 (patch) | |
tree | 346bc377cf9a66693d0f024249a09f4aca9ff797 /include | |
parent | 5c30feeee5cfee74840444b63329fa5a13b471d2 (diff) |
xt: Purify enum nft_xt_type
Remove NFT_XT_MAX from the enum, it is not a valid xt type.
Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'include')
-rw-r--r-- | include/statement.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/statement.h b/include/statement.h index 8651fc78..e648fb13 100644 --- a/include/statement.h +++ b/include/statement.h @@ -255,8 +255,8 @@ enum nft_xt_type { NFT_XT_MATCH = 0, NFT_XT_TARGET, NFT_XT_WATCHER, - NFT_XT_MAX }; +#define NFT_XT_MAX (NFT_XT_WATCHER + 1) struct xtables_match; struct xtables_target; |