io: Stop appending -listen to net listeners
All callers of qio_net_listener_set_name() already add some sort of "listen" or "listener" suffix. For intance, we currently have "migration-socket-listener-listen" and "vnc-listen-listen" as ioc names. Signed-off-by: Fabiano Rosas <farosas@suse.de> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
e158f8e92d
commit
9c636e0f96
@ -109,9 +109,7 @@ void qio_net_listener_add(QIONetListener *listener,
|
|||||||
QIOChannelSocket *sioc)
|
QIOChannelSocket *sioc)
|
||||||
{
|
{
|
||||||
if (listener->name) {
|
if (listener->name) {
|
||||||
char *name = g_strdup_printf("%s-listen", listener->name);
|
qio_channel_set_name(QIO_CHANNEL(sioc), listener->name);
|
||||||
qio_channel_set_name(QIO_CHANNEL(sioc), name);
|
|
||||||
g_free(name);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
listener->sioc = g_renew(QIOChannelSocket *, listener->sioc,
|
listener->sioc = g_renew(QIOChannelSocket *, listener->sioc,
|
||||||
|
Loading…
Reference in New Issue
Block a user