mirror of
https://github.com/systemd/systemd.git
synced 2025-01-09 01:18:19 +03:00
varlink: use varlink_server_description()
This commit is contained in:
parent
2858d92914
commit
1015742878
@ -3377,7 +3377,7 @@ int varlink_server_add_connection(VarlinkServer *server, int fd, Varlink **ret)
|
||||
}
|
||||
|
||||
_cleanup_free_ char *desc = NULL;
|
||||
if (asprintf(&desc, "%s-%i", server->description ?: "varlink", v->fd) >= 0)
|
||||
if (asprintf(&desc, "%s-%i", varlink_server_description(server), v->fd) >= 0)
|
||||
v->description = TAKE_PTR(desc);
|
||||
|
||||
/* Link up the server and the connection, and take reference in both directions. Note that the
|
||||
|
Loading…
Reference in New Issue
Block a user