From nobody Sat Mar 23 16:26:40 2024 X-Original-To: dev-commits-src-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V24Mj1Fbfz5FLq3; Sat, 23 Mar 2024 16:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V24Mj0h0Hz4nV4; Sat, 23 Mar 2024 16:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711211201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NH21y73uw7QrJ9vDu/fHr3lQ3BnfA/rFUA+g7+r5Md8=; b=AYcCN22nI0Srg6/NLML6WKpIR/weN54j6hT3xMtU1WbiRoO9o65O7h7XBlOnUUyQCad8iH sLwTNpdwhaxrf3s1b/h/3a9MQBA0M2gTe1JEkyDl5AUaSd1Qi1IVHrIps/3LgHRKHN1IMu FQvaikthevN4mfDtYyGOp4XUZHMOZinZFJ95tctwQBiIX955MGR0fusHXY+bmMpefR4fIy dXAfhSAAUSU9zc9byCabF4fdIb51rJ823p77LtJkBbQDyuq89Dg1guviLwBfkFYjW3IDN5 riAWNnhtrSqy4eTe8plFSe47ea58RdSiNsmugdm8DdcGvQ4HesFoCfw08R6Jgw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711211201; a=rsa-sha256; cv=none; b=vkH/1ySRBzXNRM0n7erscpz795U/cDy/hB+eRs640mEDUC5Me8NkKh7epgBmgckVGdRMKv GqOJ0glCda+SfwX9pFMvINwT2bMmiJzSZvTOT2hwPGpQ/ERv77HGg5BM1SuHRVASTo8SL+ +BeqgAMnKLbnk0jepsrJ4DJoOzkFPsivbxtHcu9byf/+6nPM+hGIdXxb9RDzjPzhfCH4+E w093xWRJR3joalrkKyeZ9h+15zpseAHflI45p1gVUZmg+0O8t/3+DxzKEDMcn7UhbazGc+ OFI77d8nZjp7cSsKsodjCwcqJLwg+5WbAffEsLKFCDmP/McHJerUOK9bXuay0w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711211201; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=NH21y73uw7QrJ9vDu/fHr3lQ3BnfA/rFUA+g7+r5Md8=; b=OsuVRW9TWc9e1P3ES+wlfLOfDMsc1en82WifHSzbTIty4dXhKQLOZiIobDt2S0TVSrYxaJ mYx6tP5vvq4pt6TAtyxSjP650tBVqbG9JwV3DVShoAxFe1+k/4n1vaHOMK8MlPrGSrF/+Y WWFtvqHJbKTA257ZldUtFF13e3HBwYLi0brLBzr/TVQbynT9CN8f1MUaGTckh3gfyW8Hq6 yRB7WIRDMWsFxLy9Nu5GiXOXlJ+g/rOLl14t+4Wxn+n/QvYU5egb/SzxCa6QQS4M/kFeIK GoDExHOaOClWoJXdD+XXSa0uDGkj4/yOQTEnuur6Eu3M0dZP2MwwTw97FFangQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V24Mj0FX4zwY2; Sat, 23 Mar 2024 16:26:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42NGQeCv056049; Sat, 23 Mar 2024 16:26:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42NGQe0M056046; Sat, 23 Mar 2024 16:26:40 GMT (envelope-from git) Date: Sat, 23 Mar 2024 16:26:40 GMT Message-Id: <202403231626.42NGQe0M056046@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Gleb Smirnoff Subject: git: 3f3d19d80288 - main - tests/netinet: fix UDP I/O test build List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: glebius X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 3f3d19d80288f4b10384d1c84eb2a4c93f9faf9b Auto-Submitted: auto-generated The branch main has been updated by glebius: URL: https://cgit.FreeBSD.org/src/commit/?id=3f3d19d80288f4b10384d1c84eb2a4c93f9faf9b commit 3f3d19d80288f4b10384d1c84eb2a4c93f9faf9b Author: Gleb Smirnoff AuthorDate: 2024-03-23 16:21:13 +0000 Commit: Gleb Smirnoff 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