diff options
author | Stephen Hemminger <stephen@networkplumber.org> | 2020-08-03 09:27:48 -0700 |
---|---|---|
committer | Stephen Hemminger <stephen@networkplumber.org> | 2020-08-03 10:02:47 -0700 |
commit | d530608d336abe710edf8235901c188593af8ce0 (patch) | |
tree | eea44a5a72fe154492e10879e0c7e74786476940 | |
parent | fbef655568ee931a82ad463a6f46f01ce3fb27aa (diff) |
lnstat: use same version as iproute2v5.8.0
Lnstat was trying to be different and have its own version.
Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
-rw-r--r-- | misc/lnstat.c | 3 | ||||
-rw-r--r-- | 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 <json_writer.h> #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 <limits.h> #include <sys/select.h> -#define LNSTAT_VERSION "0.02 041002" - #define PROC_NET_STAT "/proc/net/stat" #define LNSTAT_MAX_FILES 32 |