summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Sowden <jeremy@azazel.net>2020-03-05 14:48:04 +0000
committerPablo Neira Ayuso <pablo@netfilter.org>2020-03-10 13:21:23 +0100
commitcf1ed3dabf8d7f4c239020c4ac812949b4040ca2 (patch)
tree79394136fa0f96087c94091d25e9ad2266010f8d
parent3716a2721b4e56896ac0389bcafeaed3a0ddec34 (diff)
main: interpolate default include path into help format-string.
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>
-rw-r--r--src/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.c b/src/main.c
index d00c7ec2..4e9a2ed3 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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)