qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] io: Stop appending -listen to net listeners
@ 2023-09-04 14:41 Fabiano Rosas
  2023-09-08 10:09 ` Daniel P. Berrangé
  0 siblings, 1 reply; 2+ messages in thread
From: Fabiano Rosas @ 2023-09-04 14:41 UTC (permalink / raw)
  To: qemu-devel; +Cc: Daniel P. Berrangé

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>
---
 io/net-listener.c | 4 +---
 1 file changed, 1 insertion(+), 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,
-- 
2.35.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] io: Stop appending -listen to net listeners
  2023-09-04 14:41 [PATCH] io: Stop appending -listen to net listeners Fabiano Rosas
@ 2023-09-08 10:09 ` Daniel P. Berrangé
  0 siblings, 0 replies; 2+ messages in thread
From: Daniel P. Berrangé @ 2023-09-08 10:09 UTC (permalink / raw)
  To: Fabiano Rosas; +Cc: qemu-devel

On Mon, Sep 04, 2023 at 11:41:08AM -0300, Fabiano Rosas wrote:
> 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>
> ---
>  io/net-listener.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>

and queued.


With regards,
Daniel
-- 
|: 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 :|



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-09-08 10:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-09-04 14:41 [PATCH] io: Stop appending -listen to net listeners Fabiano Rosas
2023-09-08 10:09 ` Daniel P. Berrangé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).