diff options
| author | Markus Armbruster | 2020-11-02 10:44:14 +0100 |
|---|---|---|
| committer | Daniel P. Berrangé | 2020-11-03 14:09:28 +0100 |
| commit | 718a9be02df880ca4b4e34ce253daf2bfc5d059c (patch) | |
| tree | 658e57bf5e9851b9709c28eae921d1ee5f0d644e /util | |
| parent | test-util-sockets: Correct to set has_abstract, has_tight (diff) | |
| download | qemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.tar.gz qemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.tar.xz qemu-718a9be02df880ca4b4e34ce253daf2bfc5d059c.zip | |
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 'util')
0 files changed, 0 insertions, 0 deletions
