git: 3f3d19d80288 - main - tests/netinet: fix UDP I/O test build

From: Gleb Smirnoff <glebius_at_FreeBSD.org>
Date: Sat, 23 Mar 2024 16:26:40 UTC
The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=3f3d19d80288f4b10384d1c84eb2a4c93f9faf9b

commit 3f3d19d80288f4b10384d1c84eb2a4c93f9faf9b
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2024-03-23 16:21:13 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2024-03-23 16:21:13 +0000

    tests/netinet: fix UDP I/O test build
    
    Fixes:  8d3d9ca8bd3db284f6ae671f1e816ba2822f0988
---
 tests/sys/netinet/udp_io.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/sys/netinet/udp_io.c b/tests/sys/netinet/udp_io.c
index 6e0c4d9fe6d0..27cd02735ed4 100644
--- a/tests/sys/netinet/udp_io.c
+++ b/tests/sys/netinet/udp_io.c
@@ -82,7 +82,7 @@ ATF_TC_BODY(trunc, tc)
 	n = (arc4random() % (sizeof(sbuf) - 1)) + 1;
 	iov.iov_base = rbuf;
 	iov.iov_len = n;
-	ATF_REQUIRE(recvmsg(s[0], &msg, 0) == n);
+	ATF_REQUIRE(recvmsg(s[0], &msg, 0) == (ssize_t)n);
 	ATF_REQUIRE(msg.msg_flags == MSG_TRUNC);
 	ATF_REQUIRE(strncmp(sbuf, rbuf, n) == 0);
 	iov.iov_len = sizeof(rbuf);
@@ -118,7 +118,7 @@ ATF_TC_BODY(peek, tc)
 	for (int i = 0; i < 10; i++) {
 		n = (arc4random() % sizeof(sbuf)) + 1;
 		iov.iov_len = n;
-		ATF_REQUIRE(recvmsg(s[0], &msg, MSG_PEEK) == n);
+		ATF_REQUIRE(recvmsg(s[0], &msg, MSG_PEEK) == (ssize_t)n);
 		if (n < sizeof(sbuf))
 			ATF_REQUIRE(msg.msg_flags == (MSG_PEEK | MSG_TRUNC));
 		else