From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id F28311582EF for ; Tue, 11 Mar 2025 00:57:40 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id D942E3430F4 for ; Tue, 11 Mar 2025 00:57:40 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id C916E11037F; Tue, 11 Mar 2025 00:57:39 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id BE63A11037F for ; Tue, 11 Mar 2025 00:57:39 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6BF9D3430ED for ; Tue, 11 Mar 2025 00:57:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id BEE7019A7 for ; Tue, 11 Mar 2025 00:57:37 +0000 (UTC) From: "Mike Gilbert" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Gilbert" Message-ID: <1741654632.791942131fc96f3443dbf379b70965fbc3eb0021.floppym@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: libsandbox/ X-VCS-Repository: proj/sandbox X-VCS-Files: libsandbox/trace.c X-VCS-Directories: libsandbox/ X-VCS-Committer: floppym X-VCS-Committer-Name: Mike Gilbert X-VCS-Revision: 791942131fc96f3443dbf379b70965fbc3eb0021 X-VCS-Branch: master Date: Tue, 11 Mar 2025 00:57:37 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c39fe4f8-2442-44eb-bdd8-1b41b5cf81da X-Archives-Hash: 6eb4fcbd0d5d29ccd769a4212f2b9ac7 commit: 791942131fc96f3443dbf379b70965fbc3eb0021 Author: Mike Gilbert gentoo org> AuthorDate: Tue Mar 11 00:54:38 2025 +0000 Commit: Mike Gilbert gentoo org> CommitDate: Tue Mar 11 00:57:12 2025 +0000 URL: https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=79194213 libsandbox: use UINT_MAX in place of ~0U for readability Suggested-by: Doug Freed mtu.edu> Signed-off-by: Mike Gilbert gentoo.org> libsandbox/trace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libsandbox/trace.c b/libsandbox/trace.c index 4f8ea61..feaee65 100644 --- a/libsandbox/trace.c +++ b/libsandbox/trace.c @@ -530,7 +530,7 @@ static void close_all_fds(void) closefrom(0); #else #ifdef SYS_close_range - if (0 == syscall(SYS_close_range, 0U, ~0U, 0)) + if (0 == syscall(SYS_close_range, 0U, UINT_MAX, 0)) return; #endif DIR *dirp;