]> tinc-vpn.org Git - tinc/blobdiff - src/mingw/device.c
Replace pointers to global splay trees with structs.
[tinc] / src / mingw / device.c
index bf8ae13779cc3375bc1d936a14eecbfadf6c4f6e..b7a191f4ebb490a3c68e074ab5e6964c4188a407 100644 (file)
@@ -108,8 +108,8 @@ static bool setup_device(void) {
 
        int err;
 
-       get_config_string(lookup_config(config_tree, "Device"), &device);
-       get_config_string(lookup_config(config_tree, "Interface"), &iface);
+       get_config_string(lookup_config(&config_tree, "Device"), &device);
+       get_config_string(lookup_config(&config_tree, "Interface"), &iface);
 
        if(device && iface) {
                logger(DEBUG_ALWAYS, LOG_WARNING, "Warning: both Device and Interface specified, results may not be as expected");