diff options
-rw-r--r-- | include/statement.h | 2 | ||||
-rw-r--r-- | src/xt.c | 2 |
2 files changed, 1 insertions, 3 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; @@ -110,8 +110,6 @@ void xt_stmt_xlate(const struct stmt *stmt, struct output_ctx *octx) } xfree(t); break; - default: - break; } xt_xlate_free(xl); |