1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-14 21:41:56 +00:00

Allow to set friendly name even if unmanaged

This commit is contained in:
Alberto Fanjul 2021-01-03 14:04:38 +01:00
parent 92a8b0b2c6
commit 3b3531de5c
2 changed files with 0 additions and 8 deletions

View file

@ -214,11 +214,6 @@ static int cmd_set_friendly_name(char **args, unsigned int n)
return 0;
}
if (!l->managed) {
cli_printf("link %s not managed\n", l->label);
return 0;
}
return ctl_link_set_friendly_name(l, name);
}

View file

@ -227,9 +227,6 @@ int link_set_friendly_name(struct link *l, const char *name)
if (!l || !name || !*name)
return log_EINVAL();
if (!l->managed)
return log_EUNMANAGED();
t = strdup(name);
if (!t)
return log_ENOMEM();