aboutsummaryrefslogtreecommitdiff
path: root/block
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2020-11-02 10:44:14 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2020-11-03 13:09:28 +0000
commit718a9be02df880ca4b4e34ce253daf2bfc5d059c (patch)
tree658e57bf5e9851b9709c28eae921d1ee5f0d644e /block
parentd1a393211b5333f9374b439394424f594f69d282 (diff)
downloadqemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.zip
qemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.tar.gz
qemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.tar.bz2
test-util-sockets: Clean up SocketAddress construction
The thread functions build the SocketAddress from global variable @abstract_sock_name and the tight flag passed as pointer argument (either NULL or (gpointer)1). There is no need for such hackery; simply pass the SocketAddress instead. While there, dumb down g_rand_int_range() to g_random_int(). Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'block')
0 files changed, 0 insertions, 0 deletions