From 093cec72e7f7793d55fa1547cadb6655104feb5e Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 28 May 2019 11:43:26 +0200 Subject: src: replace IPTABLES_VERSION by PACKAGE_VERSION The IPTABLES_VERSION C macro replicates the PACKAGE_VERSION C macro (both have the same definition, "@PACKAGE_VERSION@"). Since IPTABLES_VERSION, being located in internal.h, is not exposed to downstream users in any way, it can just be replaced by PACKAGE_VERSION, which saves a configure-time file substitution. This goes towards eliminating unnecessary rebuilds after rerunning ./configure. Signed-off-by: Jan Engelhardt Signed-off-by: Florian Westphal --- iptables/iptables-xml.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'iptables/iptables-xml.c') diff --git a/iptables/iptables-xml.c b/iptables/iptables-xml.c index 07300efc..9d9ce6d4 100644 --- a/iptables/iptables-xml.c +++ b/iptables/iptables-xml.c @@ -5,7 +5,7 @@ * * This code is distributed under the terms of GNU GPL v2 */ - +#include "config.h" #include #include #include @@ -20,7 +20,7 @@ struct xtables_globals iptables_xml_globals = { .option_offset = 0, - .program_version = IPTABLES_VERSION, + .program_version = PACKAGE_VERSION, .program_name = "iptables-xml", }; #define prog_name iptables_xml_globals.program_name @@ -557,7 +557,7 @@ iptables_xml_main(int argc, char *argv[]) verbose = 1; break; case 'h': - print_usage("iptables-xml", IPTABLES_VERSION); + print_usage("iptables-xml", PACKAGE_VERSION); break; } } -- cgit v1.2.3