The branch stable/14 has been updated by ngie: URL: https://cgit.FreeBSD.org/src/commit/?id=f9c5a7375be57cee32507aa32a895ee3f2f65404
commit f9c5a7375be57cee32507aa32a895ee3f2f65404 Author: Enji Cooper <[email protected]> AuthorDate: 2026-09-02 07:38:11 +0000 Commit: Enji Cooper <[email protected]> CommitDate: 2026-09-22 06:48:01 +0000 tests/sys/kern/ktls_test: fix -Wsign-compare issue Cast the size_t quantity used in a comparison to off_t to mute a `-Wsign-compare` complaint that now occurs after ATF 0.22 [1]. MFC after: 2 weeks Reported by: clang Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D59285 [1]: https://github.com/freebsd/atf/pull/72 (cherry picked from commit 505103215ee2e3e31d233b952633e5697ac5da5f) --- tests/sys/kern/ktls_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/ktls_test.c b/tests/sys/kern/ktls_test.c index 7003b86fb4e2..d895f5d4ffe5 100644 --- a/tests/sys/kern/ktls_test.c +++ b/tests/sys/kern/ktls_test.c @@ -2986,7 +2986,7 @@ ATF_TC_BODY(ktls_receive_loopback_sendfile, tc) debug_hexdump(tc, p, payload_len, "shm buffer before"); ATF_REQUIRE_INTEQ(0, sendfile(shm, sockets[1], 0, payload_len, &hdtr, &sbytes, 0)); - ATF_REQUIRE_INTEQ(sbytes, len); + ATF_REQUIRE_INTEQ(sbytes, (off_t)len); outbuf = calloc(payload_len, 1);
