X-Git-Url: https://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fsolaris%2Fdevice.c;h=78bb43703dec946c235d6ef4d494ff407b483e03;hb=3a149f7521dfff67e6a790c1a830afc649ae083e;hp=f27954b1d05e6ce1674633a2683ae6c9a0c8aa7a;hpb=38489e37f50e807e51bfd28ebb8b20396eed1447;p=tinc diff --git a/src/solaris/device.c b/src/solaris/device.c index f27954b1..78bb4370 100644 --- a/src/solaris/device.c +++ b/src/solaris/device.c @@ -58,7 +58,7 @@ static const char *device_info = NULL; 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 { @@ -66,7 +66,7 @@ static bool setup_device(void) { } } - 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")) { @@ -102,9 +102,9 @@ static bool setup_device(void) { /* 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(*ptr)) { + while(*ptr && !isdigit((uint8_t) *ptr)) { ptr++; }