commit:     791942131fc96f3443dbf379b70965fbc3eb0021
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 11 00:54:38 2025 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> 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 <dwfreed <AT> mtu.edu>
Signed-off-by: Mike Gilbert <floppym <AT> 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;

Reply via email to