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/xtables-monitor.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'iptables/xtables-monitor.c') diff --git a/iptables/xtables-monitor.c b/iptables/xtables-monitor.c index f835c5e5..eb80bac8 100644 --- a/iptables/xtables-monitor.c +++ b/iptables/xtables-monitor.c @@ -10,6 +10,7 @@ */ #define _GNU_SOURCE +#include "config.h" #include #include #include @@ -631,10 +632,10 @@ int xtables_monitor_main(int argc, char *argv[]) cb_arg.nfproto = NFPROTO_IPV6; break; case 'V': - printf("xtables-monitor %s\n", IPTABLES_VERSION); + printf("xtables-monitor %s\n", PACKAGE_VERSION); exit(0); default: - fprintf(stderr, "xtables-monitor %s: Bad argument.\n", IPTABLES_VERSION); + fprintf(stderr, "xtables-monitor %s: Bad argument.\n", PACKAGE_VERSION); fprintf(stderr, "Try `xtables-monitor -h' for more information.\n"); exit(PARAMETER_PROBLEM); } -- cgit v1.2.3