[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/5] io: Stop appending -listen to net listeners
From: |
Daniel P . Berrangé |
Subject: |
[PULL 2/5] io: Stop appending -listen to net listeners |
Date: |
Tue, 7 Nov 2023 19:08:14 +0000 |
From: Fabiano Rosas <farosas@suse.de>
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>
---
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.41.0
- [PULL 0/5] Misc fixes patches, Daniel P . Berrangé, 2023/11/07
- [PULL 1/5] crypto/rsakey-builtin.c.inc: Clean up two error paths, Daniel P . Berrangé, 2023/11/07
- [PULL 3/5] audio: don't abort on f32 audio format in wav backend, Daniel P . Berrangé, 2023/11/07
- [PULL 2/5] io: Stop appending -listen to net listeners,
Daniel P . Berrangé <=
- [PULL 5/5] scripts/cpu-x86-uarch-abi.py: Fix parameter error of cmd, Daniel P . Berrangé, 2023/11/07
- [PULL 4/5] MAINTAINERS: update libvirt devel mailing list address, Daniel P . Berrangé, 2023/11/07
- Re: [PULL 0/5] Misc fixes patches, Stefan Hajnoczi, 2023/11/08