Remove unused device stats variables.
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; ^
This commit is contained in:
parent
6e221a828f
commit
5217c16db4
2 changed files with 0 additions and 10 deletions
|
@ -27,11 +27,6 @@ extern int device_fd;
|
||||||
extern char *device;
|
extern char *device;
|
||||||
extern char *iface;
|
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 {
|
typedef struct devops_t {
|
||||||
bool (*setup)(void);
|
bool (*setup)(void);
|
||||||
void (*close)(void);
|
void (*close)(void);
|
||||||
|
|
|
@ -43,9 +43,6 @@ char *device = NULL;
|
||||||
char *iface = NULL;
|
char *iface = NULL;
|
||||||
static char *device_info = NULL;
|
static char *device_info = NULL;
|
||||||
|
|
||||||
static uint64_t device_total_in = 0;
|
|
||||||
static uint64_t device_total_out = 0;
|
|
||||||
|
|
||||||
extern char *myport;
|
extern char *myport;
|
||||||
|
|
||||||
static void device_issue_read() {
|
static void device_issue_read() {
|
||||||
|
@ -234,8 +231,6 @@ static bool write_packet(vpn_packet_t *packet) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
device_total_out += packet->len;
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue