diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2021-03-21 21:25:28 +0100 |
---|---|---|
committer | cgzones <cgzones@googlemail.com> | 2021-04-14 17:29:56 +0200 |
commit | d63394b5f6f251228b38e7f5f319ebad9a168e96 (patch) | |
tree | 01852b004751bae6939e65fdb75b92aaf2d60c13 /Compat.c | |
parent | 99cde7edec4abeba8b57d56a4399137b77779ca8 (diff) |
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) {
| ^~
Diffstat (limited to 'Compat.c')
-rw-r--r-- | Compat.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |