DragonFlyBSD: resolve sign comparison

Compat.c: In function 'Compat_faccessat':
  Compat.c:46:14: error: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Werror=sign-compare]
     46 |    if (dirfd != AT_FDCWD || mode != F_OK) {
        |              ^~
This commit is contained in:
Christian Göttsche 2021-03-21 21:25:28 +01:00 committed by cgzones
parent 99cde7edec
commit d63394b5f6
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ int Compat_faccessat(int dirfd,
#endif
// Error out on unsupported configurations
if (dirfd != AT_FDCWD || mode != F_OK) {
if (dirfd != (int)AT_FDCWD || mode != F_OK) {
errno = EINVAL;
return -1;
}