From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 94937396E427; Fri, 13 May 2022 14:20:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 94937396E427 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Adhemerval Zanella To: glibc-cvs@sourceware.org Subject: [glibc/azanella/clang] posix: Use unsigned to check for _POSIX_VDISABLE X-Act-Checkin: glibc X-Git-Author: Adhemerval Zanella X-Git-Refname: refs/heads/azanella/clang X-Git-Oldrev: f28df9ec4d0b8406216451deebad1ac4a0a40c94 X-Git-Newrev: 655233a61ef92b7f74576c0a0a42c96afd95d409 Message-Id: <20220513142042.94937396E427@sourceware.org> Date: Fri, 13 May 2022 14:20:42 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 May 2022 14:20:42 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=655233a61ef92b7f74576c0a0a42c96afd95d409 commit 655233a61ef92b7f74576c0a0a42c96afd95d409 Author: Adhemerval Zanella Date: Tue Mar 15 18:09:10 2022 -0300 posix: Use unsigned to check for _POSIX_VDISABLE Diff: --- sysdeps/posix/fpathconf.c | 2 +- sysdeps/posix/pathconf.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sysdeps/posix/fpathconf.c b/sysdeps/posix/fpathconf.c index 216f2a9c8d..69a5cd147f 100644 --- a/sysdeps/posix/fpathconf.c +++ b/sysdeps/posix/fpathconf.c @@ -115,7 +115,7 @@ __fpathconf (int fd, int name) return _POSIX_NO_TRUNC; case _PC_VDISABLE: -#if _POSIX_VDISABLE == -1 +#if _POSIX_VDISABLE == -1U # error "Invalid value for _POSIX_VDISABLE" #endif return _POSIX_VDISABLE; diff --git a/sysdeps/posix/pathconf.c b/sysdeps/posix/pathconf.c index d414f7a313..54c86f0dfd 100644 --- a/sysdeps/posix/pathconf.c +++ b/sysdeps/posix/pathconf.c @@ -113,7 +113,7 @@ __pathconf (const char *path, int name) return _POSIX_NO_TRUNC; case _PC_VDISABLE: -#if _POSIX_VDISABLE == -1 +#if _POSIX_VDISABLE == -1U # error "Invalid value for _POSIX_VDISABLE" #endif return _POSIX_VDISABLE;