]> git.proxmox.com Git - mirror_qemu.git/commit
ui/vnc: refactor arrays of addresses to SocketAddressList
authorVladimir Sementsov-Ogievskiy <vladimir.sementsov-ogievskiy@openvz.org>
Fri, 1 Apr 2022 14:39:34 +0000 (17:39 +0300)
committerGerd Hoffmann <kraxel@redhat.com>
Wed, 27 Apr 2022 05:51:01 +0000 (07:51 +0200)
commitd708f99d8508ca6de2ff07cf9723334e6c8ecacd
tree5a43e540a67dc581f83d71096c9e3b9b6d73bb7b
parent9a0a119a382867dc9a5c2ae9348003bf79d84af2
ui/vnc: refactor arrays of addresses to SocketAddressList

Let's use SocketAddressList instead of dynamic arrays.
Benefits:
 - Automatic cleanup: don't need specific freeing function and drop
   some gotos.
 - Less indirection: no triple asterix anymore!
 - Prepare for the following commit, which will reuse new interface of
   vnc_display_listen().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20220401143936.356460-2-vsementsov@openvz.org>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
ui/vnc.c