re-arrange include sequence to avoid a mingw introduced bug.
[tinc] / src / cygwin / device.c
index 47867a4..eaf5037 100644 (file)
@@ -19,6 +19,7 @@
 */
 
 #include "../system.h"
+#include "../net.h"
 
 #include <w32api/windows.h>
 #include <w32api/winioctl.h>
@@ -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 */