static bool setup_device(void) {
char *type;
- if(!get_config_string(lookup_config(config_tree, "Device"), &device)) {
+ if(!get_config_string(lookup_config(&config_tree, "Device"), &device)) {
if(routing_mode == RMODE_ROUTER) {
device = xstrdup(DEFAULT_TUN_DEVICE);
} else {
}
}
- if(get_config_string(lookup_config(config_tree, "DeviceType"), &type)) {
+ if(get_config_string(lookup_config(&config_tree, "DeviceType"), &type)) {
if(!strcasecmp(type, "tun"))
/* use default */;
else if(!strcasecmp(type, "tap")) {
/* Get unit number. */
char *ptr = device;
- get_config_string(lookup_config(config_tree, "Interface"), &ptr);
+ get_config_string(lookup_config(&config_tree, "Interface"), &ptr);
while(*ptr && !isdigit((uint8_t) *ptr)) {
ptr++;