From nobody Tue Jul 16 05:12:49 2024 X-Original-To: dev-commits-src-all@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 4WNRz6269Xz5R152; Tue, 16 Jul 2024 05:12:50 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WNRz56qlMz4j51; Tue, 16 Jul 2024 05:12:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721106770; 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=WRKddcn7Me6Lzr/VR9oErbuY3Ce/86DHeXYK6EdNkiA=; b=b6YQB2ky5oidXJm7XEuvoiC2rsQe/6LIH8SO8L9LGr1gn8h3L/bjtWtXH5ctQRIGr4SYRf 0iQapQYgwLeWfIWHQ7KwI43TdxsrSw5nEv9tSU0gTQdhGumQFZbUpLrp/TIncmPfq9KtfQ 5/QDro3ok0IXLEdVZhBDuBKkZLQ4wFVrTtBQ4x9O1PV6VwWojp6eYlmmPpRf8xKDp0HmoT QU+vvmfMIO3R3O7zYTFln7xNJ8h2UH9x9a3BP/DzCA/0exDZac1x1jDXZfrQwhS2dS0OCO gUI+QCWD51JRCQrUkCHL7pLKhOe5pCrLiL2MFatSh3f3NcOXsH+gRCL1oDkxdQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721106770; a=rsa-sha256; cv=none; b=H8L5XZp+gCy/aVK9Kyb8wRMTle7xuiSVWER2H9GON0RPmJg925+1s+ERuyeV/29L+sHkdz 9gjJ9L5NmQ02sJM5FbdkdwcXOureuAztM7DL4O/8r+z0+984Yw6Kl9oBvDoO7FGG/EJPdR kX56YLMhWdmHnZyMK2MM+TmSkeSPzW14CaNrsPw+2cENWOtKW7rgblJVg+vD3fqsMTI4/W 1vbVmCmW94+H51hpDdjjshAO/Oti162g4unm9+1gJWX2vo9usUHhwRQbKsTq451mIqKcdW yzi87EgkzmHj42YLSxF1QNXBO2ryqaehfFNZYYjcP7gHsFAzIt41/uQ2W0yNIg== 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=1721106770; 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=WRKddcn7Me6Lzr/VR9oErbuY3Ce/86DHeXYK6EdNkiA=; b=gXyXS2nHDrTo8+bQQ/pfDaNw08KuDViX4Aa5bpDIdP/aRsHLL1dIuL9fIH9JX6yzv3h1pY 8P8j8xCP/NF+EVOtEUGoq8R6AXKIpW3pGTTXjp4Yaf7ex/GjzeQ06taCLkb3B69Ifv+957 TS62xCH1ACDNbP09v22t+F7maSK6kYb6/4MV5//ZAqFyAlQScCMb7T72jvhsHAyZetB1qs oZIaZJOH1MjoBgAxgoijbehAGz4/PxCFxWPEOkTsr/x9dKsx8HvoqpDVdvC2CsqRgU2bG/ Dh4aIiGQPe29HsZFazDHCrK10aLZqTqKyKZk81pbtsuimTHtSxP3oM+A9UFDkQ== 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 4WNRz56L0bzNQ3; Tue, 16 Jul 2024 05:12:49 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46G5CncE056602; Tue, 16 Jul 2024 05:12:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46G5CnB6056599; Tue, 16 Jul 2024 05:12:49 GMT (envelope-from git) Date: Tue, 16 Jul 2024 05:12:49 GMT Message-Id: <202407160512.46G5CnB6056599@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kyle Evans Subject: git: 4928dcc0ebdb - main - sys/select.h: const'ify the fd_set that __fdset_idx() takes List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kevans X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 4928dcc0ebdb7bac56840930e44c38f8f061f09e Auto-Submitted: auto-generated The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=4928dcc0ebdb7bac56840930e44c38f8f061f09e commit 4928dcc0ebdb7bac56840930e44c38f8f061f09e Author: Kyle Evans AuthorDate: 2024-07-16 05:12:28 +0000 Commit: Kyle Evans CommitDate: 2024-07-16 05:12:28 +0000 sys/select.h: const'ify the fd_set that __fdset_idx() takes Some callers may be operating on a const fd_set and we don't particularly care, so const'ify it. Reviewed by: kib (earlier version), markj Sponsored by: Klara, Inc. Sponsored by: Stormshield Differential Revision: https://reviews.freebsd.org/D45976 --- sys/sys/select.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/sys/select.h b/sys/sys/select.h index 9b734754b944..fefc9961d63a 100644 --- a/sys/sys/select.h +++ b/sys/sys/select.h @@ -86,7 +86,7 @@ typedef struct fd_set { #define __fdset_idx(p, n) __fdset_idx_(p, n) #else __ssp_inline unsigned long -__fdset_idx(fd_set *p, unsigned long idx) +__fdset_idx(const fd_set *p, unsigned long idx) { __size_t psz = __ssp_bos0(p); unsigned long sidx = __fdset_idx_(p, idx);