lnstat: use same version as iproute2

Lnstat was trying to be different and have its own version.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
This commit is contained in:
Stephen Hemminger
2020-08-03 09:27:48 -07:00
parent fbef655568
commit d530608d33
2 changed files with 2 additions and 3 deletions

View File

@@ -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);
}

View File

@@ -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