From d530608d336abe710edf8235901c188593af8ce0 Mon Sep 17 00:00:00 2001 From: Stephen Hemminger Date: Mon, 3 Aug 2020 09:27:48 -0700 Subject: [PATCH] lnstat: use same version as iproute2 Lnstat was trying to be different and have its own version. Signed-off-by: Stephen Hemminger --- misc/lnstat.c | 3 ++- misc/lnstat.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/misc/lnstat.c b/misc/lnstat.c index e3c84211..89cb0e7e 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 199eb54a..433599cc 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