]> git.ipfire.org Git - thirdparty/nftables.git/commit
main: use one data-structure to initialize getopt_long(3) arguments and help.
authorJeremy Sowden <jeremy@azazel.net>
Thu, 5 Mar 2020 14:48:05 +0000 (14:48 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Mar 2020 12:21:23 +0000 (13:21 +0100)
commit719e44277f8e89323a87219b4d4bc7abac05b051
tree19cbc1acd3b88487c01fae9340aab79b77e46876
parentcf1ed3dabf8d7f4c239020c4ac812949b4040ca2
main: use one data-structure to initialize getopt_long(3) arguments and help.

By generating the getopt_long(3) optstring and options, and the help
from one source, we reduce the chance that they may get out of sync.

Signed-off-by: Jeremy Sowden <jeremy@azazel.net>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/main.c