From nobody Tue Jun 20 16:29:30 2023 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 4QlsXp46Pfz4gJZt; Tue, 20 Jun 2023 16:29:30 +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 4QlsXp3ZGcz4LGS; Tue, 20 Jun 2023 16:29:30 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278570; 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=xVat04webuHqMMx1QT2cy3i3bDPtpstHjkb3FgBX8Xo=; b=r0i4Y/1fD2LG1G5XIUbQdvlipEragkWkHVsI3DCc5kGOMa5Wh+du2istKGS6ZHO2uvbfqt 1KKVyjXNJLldBArQKfW1CXO4Hi3W5yV7PqxFUerq34bQHZe7Y6Q15POtspqPZUpec6iTBx WvOjYPCz5X3xrhxnMN0Hh6v5pNy7hPjDqtUOVEnwLVuso2rqPrQkrTGp5C7M0WKJ5cN2Ql r9R7dvoSQzMSSb78UJcRipPAxcz11AL3i4B5TecfV1a16M2EYDXM76ZPQhT6B9DVmdlysT jaMFtmTTnrtP3CS1gNI0AoYdW+s6O/1Jk5XxEERPsg73yYCp++xKhI/ivOp1OA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1687278570; 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=xVat04webuHqMMx1QT2cy3i3bDPtpstHjkb3FgBX8Xo=; b=XkGP2yE8PGD1S3PVpMOr7Q++My6f5f14DIjCv5u75upHRZFa2ClroTtmpU9a/4tbqAVP6G qG4uNbcjz456qxbhvdQQZAUmuHTvwwiS/hcYcbandKHW787HDyFcGY4+lLlzA4JGrAwFuk TMFi0NeQWvigzmIDtqUlJps4RF4/XwjcMJD/Wom3rBJa+L4mlhgQP9qp3hjuEBvHaNzxYc AkVSpMBXkMnBFi5a65aLw4Z25FRrTI3i6pukJp3g82DmxlwzIc3gxgI4w4mwaRjBmUWdGV vHlTAF5SL9vOdreqMCsAZV5i/5e24W51l+27cTAuDElGLapx1sddC16wXoP8VA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1687278570; a=rsa-sha256; cv=none; b=sunnjbi3B922UEFDtX/tPNF6AdLB73VWxIQjLikuqax2rJ9RzcQIcosusexr0x5NHZC9EY 8EyglHbCsRyhlTQ5mb5/BQbJQ3RjF6nMPtTMcV1cFquGbQP5x51HaRQzcRQjGruyq1u8UE dgOLABZXUl7QqPPYMStxSsCpWieS0EtKq14CkST77SqpZet19HZhC8fdzQYLDwp7YcaJp+ zrKC0/R8k1qgKcLSFk10aF5lC1ZkufWMOOhBuQvlHh1diAUGimdEL3DZH08f03H+7MF2qy +Cs/cYvXFYp5H6q/mC4GSNaAF3lr11AsAJEXytKAsDidFdUgASuGO6sP5H5Gfw== 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 4QlsXp2H4Gz15YK; Tue, 20 Jun 2023 16:29:30 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 35KGTUbx045300; Tue, 20 Jun 2023 16:29:30 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 35KGTUjB045299; Tue, 20 Jun 2023 16:29:30 GMT (envelope-from git) Date: Tue, 20 Jun 2023 16:29:30 GMT Message-Id: <202306201629.35KGTUjB045299@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: John Baldwin Subject: git: 6dd202ce930c - main - unix_seqpacket_test: Consistently use datalen as length to send. 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: jhb X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6dd202ce930c6e77db4f4f2c5fe835a28d8c6a04 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by jhb: URL: https://cgit.FreeBSD.org/src/commit/?id=6dd202ce930c6e77db4f4f2c5fe835a28d8c6a04 commit 6dd202ce930c6e77db4f4f2c5fe835a28d8c6a04 Author: John Baldwin AuthorDate: 2023-06-20 16:29:00 +0000 Commit: John Baldwin CommitDate: 2023-06-20 16:29:00 +0000 unix_seqpacket_test: Consistently use datalen as length to send. This matches the other tests in this file and quiets a set but unused warning from GCC. --- tests/sys/kern/unix_seqpacket_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/sys/kern/unix_seqpacket_test.c b/tests/sys/kern/unix_seqpacket_test.c index 6d50816b02ff..72be92ee398b 100644 --- a/tests/sys/kern/unix_seqpacket_test.c +++ b/tests/sys/kern/unix_seqpacket_test.c @@ -829,7 +829,7 @@ ATF_TC_BODY(shutdown_send_sigpipe, tc) ATF_CHECK_EQ(0, shutdown(s2, SHUT_RDWR)); ATF_REQUIRE(SIG_ERR != signal(SIGPIPE, shutdown_send_sigpipe_handler)); datalen = strlen(data) + 1; /* +1 for the null */ - (void)send(s2, data, sizeof(*data), MSG_EOR); + (void)send(s2, data, datalen, MSG_EOR); ATF_CHECK_EQ(1, got_sigpipe); close(s); close(s2);