From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1791) id 265E8388451B; Thu, 12 May 2022 19:34:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 265E8388451B 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: 486b92fa2a1ff1de26adbc37943b5d5e034caccf X-Git-Newrev: 35825222677bb8b80a8df39bf903a27e20a9829a Message-Id: <20220512193427.265E8388451B@sourceware.org> Date: Thu, 12 May 2022 19:34:27 +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: Thu, 12 May 2022 19:34:27 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=35825222677bb8b80a8df39bf903a27e20a9829a commit 35825222677bb8b80a8df39bf903a27e20a9829a 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;