]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
main: swap json and gmp fields in nft -V
authorPablo Neira Ayuso <pablo@netfilter.org>
Tue, 31 Mar 2020 23:20:53 +0000 (01:20 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 31 Mar 2020 23:24:20 +0000 (01:24 +0200)
 # ./configure --with-xtable --with-json
 ...
 # make
 ...
 # make install
 ...
 # nft -V
 nftables v0.9.3 (Topsy)
   cli:          readline
   json:         no
   minigmp:      yes
   libxtables:   yes

json: and minigmp: are accidentally swapped.

I introduced this bug while mangling Jeremy's original patch.

Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
src/main.c

index 1ee4d957a152c834a6f83777fa3ed6cdbe8edc90..3dc6b62c01858ec0d05bbc12029ff75637fa1dd6 100644 (file)
@@ -225,7 +225,7 @@ static void show_version(void)
               "  minigmp:      %s\n"
               "  libxtables:   %s\n",
               PACKAGE_NAME, PACKAGE_VERSION, RELEASE_NAME,
-              cli, minigmp, json, xt);
+              cli, json, minigmp, xt);
 }
 
 static const struct {