diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2017-12-12 11:12:19 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2017-12-21 09:22:44 +0100 |
commit | 62473511ecbabdf737ba9053845e3551099b04bc (patch) | |
tree | 20cd42d1fe8197b2b34ca3500010189af7cbc604 /include/qemu | |
parent | 1ef7c96ee2133753f4aa48617ddbef10d5a88fc9 (diff) | |
download | qemu-62473511ecbabdf737ba9053845e3551099b04bc.zip qemu-62473511ecbabdf737ba9053845e3551099b04bc.tar.gz qemu-62473511ecbabdf737ba9053845e3551099b04bc.tar.bz2 |
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 'include/qemu')
-rw-r--r-- | include/qemu/sockets.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/qemu/sockets.h b/include/qemu/sockets.h index 4f7311b..8889bcb 100644 --- a/include/qemu/sockets.h +++ b/include/qemu/sockets.h @@ -35,7 +35,7 @@ int inet_connect_saddr(InetSocketAddress *saddr, Error **errp); NetworkAddressFamily inet_netfamily(int family); -int unix_listen(const char *path, char *ostr, int olen, Error **errp); +int unix_listen(const char *path, Error **errp); int unix_connect(const char *path, Error **errp); SocketAddress *socket_parse(const char *str, Error **errp); |