X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=aeffdc36dc4c200c6acbf53a8ee718708ca65229;hp=c6eb908b92f205333ddb39f11e07cad456837050;hb=ce8775000ab38229a78ecf3dc26bab008ca0f332;hpb=3f59a26d8098b8b0902b8746715508360b347f47 diff --git a/src/mingw/device.c b/src/mingw/device.c index c6eb908b..aeffdc36 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-2009 Guus Sliepen + 2002-2011 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 @@ -95,17 +95,9 @@ bool setup_device(void) { bool found = false; - int sock, err; + int err; HANDLE thread; - struct addrinfo *ai; - struct addrinfo hint = { - .ai_family = AF_UNSPEC, - .ai_socktype = SOCK_STREAM, - .ai_protocol = IPPROTO_TCP, - .ai_flags = 0, - }; - get_config_string(lookup_config(config_tree, "Device"), &device); get_config_string(lookup_config(config_tree, "Interface"), &iface);