X-Git-Url: https://www.tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fvde_device.c;h=0170af32401f6dad1c3674a53c9ccdcb0ab89002;hb=38489e37f50e807e51bfd28ebb8b20396eed1447;hp=e2692eb88c1d1792ea6526beadb5ef7f26c72235;hpb=f6e87ab476a0faf8b124ecaaa27f967d825e6457;p=tinc diff --git a/src/vde_device.c b/src/vde_device.c index e2692eb8..0170af32 100644 --- a/src/vde_device.c +++ b/src/vde_device.c @@ -34,7 +34,7 @@ static struct vdepluglib plug; static struct vdeconn *conn = NULL; static int port = 0; static char *group = NULL; -static char *device_info; +static const char *device_info = "VDE socket"; static bool setup_device(void) { libvdeplug_dynopen(plug); @@ -45,7 +45,7 @@ static bool setup_device(void) { } if(!get_config_string(lookup_config(config_tree, "Device"), &device)) { - xasprintf(&device, LOCALSTATEDIR "/run/vde.ctl"); + xasprintf(&device, RUNSTATEDIR "/vde.ctl"); } get_config_string(lookup_config(config_tree, "Interface"), &iface); @@ -54,8 +54,6 @@ static bool setup_device(void) { get_config_string(lookup_config(config_tree, "VDEGroup"), &group); - device_info = "VDE socket"; - struct vde_open_args args = { .port = port, .group = group,