From 5217c16db4babd64580c2fd7aa36180bb9bd838c Mon Sep 17 00:00:00 2001 From: Etienne Dechamps Date: Sat, 12 Jul 2014 13:27:05 +0100 Subject: [PATCH] Remove unused device stats variables. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This removes a bunch of variables that are never actually used anywhere. This fixes the following compiler warning when building for Windows: mingw/device.c:46:17: error: ‘device_total_in’ defined but not used [-Werror=unused-variable] static uint64_t device_total_in = 0; ^ --- src/device.h | 5 ----- src/mingw/device.c | 5 ----- 2 files changed, 10 deletions(-) diff --git a/src/device.h b/src/device.h index ad91a0e..8046a25 100644 --- a/src/device.h +++ b/src/device.h @@ -27,11 +27,6 @@ extern int device_fd; extern char *device; extern char *iface; -extern uint64_t device_in_packets; -extern uint64_t device_in_bytes; -extern uint64_t device_out_packets; -extern uint64_t device_out_bytes; - typedef struct devops_t { bool (*setup)(void); void (*close)(void); diff --git a/src/mingw/device.c b/src/mingw/device.c index 5e449d5..b6dffbc 100644 --- a/src/mingw/device.c +++ b/src/mingw/device.c @@ -43,9 +43,6 @@ char *device = NULL; char *iface = NULL; static char *device_info = NULL; -static uint64_t device_total_in = 0; -static uint64_t device_total_out = 0; - extern char *myport; static void device_issue_read() { @@ -234,8 +231,6 @@ static bool write_packet(vpn_packet_t *packet) { return false; } - device_total_out += packet->len; - return true; } -- 2.25.1