[PATCH nft 3/4] main: interpolate default include path into help format-string.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>
---
 src/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/main.c b/src/main.c
index d00c7ec2b687..4e9a2ed3bcec 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)
-- 
2.25.1




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux