X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=d3a4303f06bc01ee7b4cea1aafef20d892ac7702;hb=e44c337eae674120745f7c7c56a1a70919ff40ca;hp=b04a7478d326518f16b9aa97bb52d7d5ebadbf29;hpb=1ceea259c3ba5efb9b8b12161e75256270ba4804;p=tinc diff --git a/src/cygwin/device.c b/src/cygwin/device.c index b04a7478..d3a4303f 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -19,6 +19,7 @@ */ #include "../system.h" +#include "../net.h" #include #include @@ -27,7 +28,6 @@ #include "../device.h" #include "../logger.h" #include "../names.h" -#include "../net.h" #include "../route.h" #include "../utils.h" #include "../xalloc.h" @@ -59,7 +59,7 @@ static bool setup_device(void) { get_config_string(lookup_config(config_tree, "Device"), &device); get_config_string(lookup_config(config_tree, "Interface"), &iface); - if(device && interface) + if(device && iface) logger(LOG_WARNING, "Warning: both Device and Interface specified, results may not be as expected"); /* Open registry and look for network adapters */