]> tinc-vpn.org Git - tinc/blobdiff - src/raw_socket_device.c
Replace pointers to global splay trees with structs.
[tinc] / src / raw_socket_device.c
index 4dd18e2b2933bf87eb7935b83c3b0f5e096dc24a..8463502d45f0286520c235e2c5ca871c31882422 100644 (file)
@@ -37,11 +37,11 @@ static bool setup_device(void) {
        struct ifreq ifr;
        struct sockaddr_ll sa;
 
-       if(!get_config_string(lookup_config(config_tree, "Interface"), &iface)) {
+       if(!get_config_string(lookup_config(&config_tree, "Interface"), &iface)) {
                iface = xstrdup("eth0");
        }
 
-       if(!get_config_string(lookup_config(config_tree, "Device"), &device)) {
+       if(!get_config_string(lookup_config(&config_tree, "Device"), &device)) {
                device = xstrdup(iface);
        }