X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=b6dffbc988bda018e7d9adffc1b0ca96f42d2033;hb=5217c16db4babd64580c2fd7aa36180bb9bd838c;hp=33b13da60b89a9496f311c50f48757af9764ded7;hpb=313a752cb5fbf27450d34c15b0085d2d8a4147af;p=tinc diff --git a/src/mingw/device.c b/src/mingw/device.c index 33b13da6..b6dffbc9 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() { @@ -60,7 +57,7 @@ static void device_issue_read() { } } -static void device_handle_read(void *data) { +static void device_handle_read(void *data, int flags) { ResetEvent(device_read_overlapped.hEvent); DWORD len; @@ -89,7 +86,6 @@ static bool setup_device(void) { bool found = false; int err; - HANDLE thread; get_config_string(lookup_config(config_tree, "Device"), &device); get_config_string(lookup_config(config_tree, "Interface"), &iface); @@ -235,8 +231,6 @@ static bool write_packet(vpn_packet_t *packet) { return false; } - device_total_out += packet->len; - return true; }