X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=bf8ae13779cc3375bc1d936a14eecbfadf6c4f6e;hb=bf7abd5a059d27dc544b435b67f7f1d5419d318b;hp=54e09942ce70e07df62a7e37a0ef6d535445743a;hpb=03a94cb3148544230bdd306e905d2ce88c551c12;p=tinc diff --git a/src/mingw/device.c b/src/mingw/device.c index 54e09942..bf8ae137 100644 --- a/src/mingw/device.c +++ b/src/mingw/device.c @@ -1,7 +1,7 @@ /* device.c -- Interaction with Windows tap driver in a MinGW environment Copyright (C) 2002-2005 Ivo Timmermans, - 2002-2014 Guus Sliepen + 2002-2018 Guus Sliepen This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by @@ -71,6 +71,9 @@ static void device_issue_read() { } static void device_handle_read(void *data, int flags) { + (void)data; + (void)flags; + DWORD len; if(!GetOverlappedResult(device_handle, &device_read_overlapped, &len, FALSE)) { @@ -212,7 +215,7 @@ static bool setup_device(void) { if(info[0] == 9 && info[1] >= 21) logger(DEBUG_ALWAYS, LOG_WARNING, "You are using the newer (>= 9.0.0.21, NDIS6) series of TAP-Win32 drivers. " - "Using these drivers with tinc is not recommanded as it can result in poor performance. " + "Using these drivers with tinc is not recommended as it can result in poor performance. " "You might want to revert back to 9.0.0.9 instead."); } } @@ -300,6 +303,7 @@ static void close_device(void) { } static bool read_packet(vpn_packet_t *packet) { + (void)packet; return false; }