]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
main: interpolate default include path into help format-string.
authorJeremy Sowden <jeremy@azazel.net>
Thu, 5 Mar 2020 14:48:04 +0000 (14:48 +0000)
committerPablo Neira Ayuso <pablo@netfilter.org>
Tue, 10 Mar 2020 12:21:23 +0000 (13:21 +0100)
The default include path is a string literal defined as a preprocessor
macro by autoconf.  We can just interpolate it.

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

index d00c7ec2b68737ab9bed917867aa8f987c56c924..4e9a2ed3bcec6df71a9904e7dee10254f5b8c671 100644 (file)
@@ -160,10 +160,10 @@ static void show_help(const char *name)
 "  -T, --numeric-time                  Print time values numerically.\n"
 "  -a, --handle                                Output rule handle.\n"
 "  -e, --echo                          Echo what has been added, inserted or replaced.\n"
-"  -I, --includepath <directory>               Add <directory> to the paths searched for include files. Default is: %s\n"
+"  -I, --includepath <directory>               Add <directory> to the paths searched for include files. Default is: " DEFAULT_INCLUDE_PATH "\n"
 "  -d, --debug <level [,level...]>     Specify debugging level (scanner, parser, eval, netlink, mnl, proto-ctx, segtree, all)\n"
 "\n",
-       name, DEFAULT_INCLUDE_PATH);
+       name);
 }
 
 static void show_version(void)