X-Git-Url: http://tinc-vpn.org/git/browse?a=blobdiff_plain;f=src%2Fuml_device.c;h=dbb13e937b3dbcdc79302ffa2d3e4ba55226f8c0;hb=38489e37f50e807e51bfd28ebb8b20396eed1447;hp=3f521040f8ceb25827866ebf261d5181e1885391;hpb=61b441dc995c1e6dd21fd85e2014dd981e9c9350;p=tinc diff --git a/src/uml_device.c b/src/uml_device.c index 3f521040..dbb13e93 100644 --- a/src/uml_device.c +++ b/src/uml_device.c @@ -36,7 +36,7 @@ static int request_fd = -1; static int data_fd = -1; static int write_fd = -1; static int state = 0; -static char *device_info; +static const char *device_info = "UML network socket"; enum request_type { REQ_NEW_CONTROL }; @@ -65,8 +65,6 @@ static bool setup_device(void) { get_config_string(lookup_config(config_tree, "Interface"), &iface); - device_info = "UML network socket"; - if((write_fd = socket(PF_UNIX, SOCK_DGRAM, 0)) < 0) { logger(DEBUG_ALWAYS, LOG_ERR, "Could not open write %s: %s", device_info, strerror(errno)); event_exit();