X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;f=src%2Fmingw%2Fdevice.c;h=bdca8424fe178cc33612eb31650cf50c3df6fa1b;hb=33f241d97852d7a171f1aaf1bda7f66356ff889e;hp=c6eb908b92f205333ddb39f11e07cad456837050;hpb=886a6f61a1f4cc48a77b42d10f34f9126377d904;p=meshlink diff --git a/src/mingw/device.c b/src/mingw/device.c index c6eb908b..bdca8424 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 @@ -24,6 +24,7 @@ #include #include "conf.h" +#include "device.h" #include "logger.h" #include "net.h" #include "route.h" @@ -95,17 +96,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);