Skip to contentSkip to conversation

io: Stop appending -listen to net listeners

PATCH In review Fabiano Rosas 2 participants 2 messages Sep 4, 2023 – Sep 8, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 io/net-listener.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
io/net-listener.c +1 -3
index 1c984d69c6..47405965a6 100644
@@ -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,
Signature · 1 line
2.35.3
Reviewed-by on v1 1/1
#1 lore raw
Quoted 10 lines · Fabiano Rosas

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.

---
 io/net-listener.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

and queued.

With regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|