Searched hist:"718 a9be02df880ca4b4e34ce253daf2bfc5d059c" (Results 1 – 1 of 1) sorted by relevance
/qemu/tests/unit/ |
H A D | test-util-sockets.c | 718a9be02df880ca4b4e34ce253daf2bfc5d059c Mon Nov 02 09:44:14 UTC 2020 Markus Armbruster <armbru@redhat.com> 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>
|