path: root/qga/channel-posix.c
diff options
authorDaniel P. Berrange <berrange@redhat.com>2017-12-12 11:12:19 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2017-12-21 09:22:44 +0100
commit62473511ecbabdf737ba9053845e3551099b04bc (patch)
tree20cd42d1fe8197b2b34ca3500010189af7cbc604 /qga/channel-posix.c
parent1ef7c96ee2133753f4aa48617ddbef10d5a88fc9 (diff)
sockets: remove obsolete code that updated listen address
When listening on unix/tcp sockets there was optional code that would update the original SocketAddress struct with the info about the actual address that was listened on. Since the conversion of everything to QIOChannelSocket, no remaining caller made use of this feature. It has been replaced with the ability to query the listen address after the fact using the function qio_channel_socket_get_local_address. This is a better model when the input address can result in listening on multiple distinct sockets. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> Reviewed-by: Peter Xu <peterx@redhat.com> Message-Id: <20171212111219.32601-1-berrange@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'qga/channel-posix.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/qga/channel-posix.c b/qga/channel-posix.c
index 3f34465159..b812bf4d51 100644
--- a/qga/channel-posix.c
+++ b/qga/channel-posix.c
@@ -190,7 +190,7 @@ static gboolean ga_channel_open(GAChannel *c, const gchar *path,
if (fd < 0) {
Error *local_err = NULL;
- fd = unix_listen(path, NULL, strlen(path), &local_err);
+ fd = unix_listen(path, &local_err);
if (local_err != NULL) {
g_critical("%s", error_get_pretty(local_err));