X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=235e0fd6d64ae0692cce26dbb3c16f7fe2c997a7;hb=0821e327f23d81e4b001479b9de62151a3c0a1bc;hp=441c52477ee6dd13a5f3480382c8c04bd84aea96;hpb=67498fb1b55960bcc2ccead2e6341de4167413af;p=tinc diff --git a/src/mingw/device.c b/src/mingw/device.c index 441c5247..235e0fd6 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-2013 Guus Sliepen + 2002-2014 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 @@ -49,7 +49,7 @@ static DWORD WINAPI tapreader(void *bla) { DWORD len; OVERLAPPED overlapped; vpn_packet_t packet; - int errors; + int errors = 0; logger(LOG_DEBUG, "Tap reader running"); @@ -91,6 +91,8 @@ static DWORD WINAPI tapreader(void *bla) { route(myself, &packet); LeaveCriticalSection(&mutex); } + + return 0; } static bool setup_device(void) {