From 9b2877353b7c371a7964825e3ab2c983d09c0a46 Mon Sep 17 00:00:00 2001 From: Alfredo Dal'Ava Junior Date: Wed, 25 Mar 2020 20:20:08 +0000 Subject: [PATCH] so_reuseport_lb_test: correct setsockopt parameter size Change type of variable used in setsocketopt so correct size of option is passed. Test failure was identified when running the test on PowerPC64, and the following error message was seen: "bind () failed: Address already in use" Submitted by: Fernando Valle Reviewed by: melifaro, adalava Approved by: jhibbits (mentor) Sponsored by: Eldorado Research Institute (eldorado.org.br) Differential Revision: https://reviews.freebsd.org/D24164 --- tests/sys/netinet/so_reuseport_lb_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/netinet/so_reuseport_lb_test.c b/tests/sys/netinet/so_reuseport_lb_test.c index e80e54463c57..f3fc36f8e048 100644 --- a/tests/sys/netinet/so_reuseport_lb_test.c +++ b/tests/sys/netinet/so_reuseport_lb_test.c @@ -108,7 +108,7 @@ lb_simple_accept_loop(int domain, const struct sockaddr *addr, int sds[], static int lb_listen_socket(int domain, int flags) { - size_t one; + int one; int error, sd; sd = socket(domain, SOCK_STREAM | flags, 0);