X-Git-Url: https://tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fcygwin%2Fdevice.c;h=eaf50374fe02868bfa662e67fc4d447fb10e6bce;hp=47867a493e8edbb87bfcf53ded1c4ba3a11cfb09;hb=604d744bc4516b5b070e17a619be43bebb8540ff;hpb=2f03a5d94c0bb6732fd65263217e3aa2b72f18ff diff --git a/src/cygwin/device.c b/src/cygwin/device.c index 47867a49..eaf50374 100644 --- a/src/cygwin/device.c +++ b/src/cygwin/device.c @@ -19,6 +19,7 @@ */ #include "../system.h" +#include "../net.h" #include #include @@ -26,7 +27,6 @@ #include "../conf.h" #include "../device.h" #include "../logger.h" -#include "../net.h" #include "../route.h" #include "../utils.h" #include "../xalloc.h" @@ -61,7 +61,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 */