From: Stephen Hemminger Date: Mon, 3 Aug 2020 16:27:48 +0000 (-0700) Subject: lnstat: use same version as iproute2 X-Git-Tag: v5.8.0^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d530608d336abe710edf8235901c188593af8ce0;p=thirdparty%2Fiproute2.git lnstat: use same version as iproute2 Lnstat was trying to be different and have its own version. Signed-off-by: Stephen Hemminger --- diff --git a/misc/lnstat.c b/misc/lnstat.c index e3c842119..89cb0e7e2 100644 --- a/misc/lnstat.c +++ b/misc/lnstat.c @@ -38,6 +38,7 @@ #include #include "lnstat.h" +#include "version.h" static struct option opts[] = { { "version", 0, NULL, 'V' }, @@ -79,7 +80,7 @@ static int usage(char *name, int exit_code) " 2 = every 20 lines (default))\n" " -w --width n,n,n,... Width for each field\n" "\n", - name, LNSTAT_VERSION); + name, version); exit(exit_code); } diff --git a/misc/lnstat.h b/misc/lnstat.h index 199eb54ab..433599ccd 100644 --- a/misc/lnstat.h +++ b/misc/lnstat.h @@ -5,8 +5,6 @@ #include #include -#define LNSTAT_VERSION "0.02 041002" - #define PROC_NET_STAT "/proc/net/stat" #define LNSTAT_MAX_FILES 32