aboutsummaryrefslogtreecommitdiff
path: root/io
diff options
context:
space:
mode:
authorFabiano Rosas <farosas@suse.de>2023-09-04 11:41:08 -0300
committerDaniel P. Berrangé <berrange@redhat.com>2023-11-07 14:54:56 +0000
commit9c636e0f9644d0778c16f460e0645e2352f42a7a (patch)
tree80b7680a92eece0595e3f347fa6b21be3b0cee50 /io
parente158f8e92df5782f41b61adb6fa43bed70879f7f (diff)
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>
Diffstat (limited to 'io')
-rw-r--r--io/net-listener.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/io/net-listener.c b/io/net-listener.c
index 1c984d69c6..47405965a6 100644
--- a/io/net-listener.c
+++ b/io/net-listener.c
@@ -109,9 +109,7 @@ void qio_net_listener_add(QIONetListener *listener,
QIOChannelSocket *sioc)
{
if (listener->name) {
- char *name = g_strdup_printf("%s-listen", listener->name);
- qio_channel_set_name(QIO_CHANNEL(sioc), name);
- g_free(name);
+ qio_channel_set_name(QIO_CHANNEL(sioc), listener->name);
}
listener->sioc = g_renew(QIOChannelSocket *, listener->sioc,