]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: Refer to nft_options in nft_options_check()
authorPhil Sutter <phil@nwl.cc>
Sat, 2 Dec 2023 10:10:34 +0000 (11:10 +0100)
committerFlorian Westphal <fw@strlen.de>
Sun, 3 Dec 2023 11:26:48 +0000 (12:26 +0100)
commitc9c2f54c6fb8f9303372202eab5b3e00088c7577
treed699755cacf46bb73bc725bc0d74f89ef6d47d6f
parentbda378c2d9d561bdda9ce33aedc91bc11b402ac7
main: Refer to nft_options in nft_options_check()

Consult the array when determining whether a given option is followed by
an argument or not instead of hard-coding those that do. The array holds
both short and long option name, so one extra pitfall removed.

Signed-off-by: Phil Sutter <phil@nwl.cc>
Signed-off-by: Florian Westphal <fw@strlen.de>
src/main.c