summaryrefslogtreecommitdiffstats
path: root/Compat.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2021-03-21 21:25:28 +0100
committercgzones <cgzones@googlemail.com>2021-04-14 17:29:56 +0200
commitd63394b5f6f251228b38e7f5f319ebad9a168e96 (patch)
tree01852b004751bae6939e65fdb75b92aaf2d60c13 /Compat.c
parent99cde7edec4abeba8b57d56a4399137b77779ca8 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Compat.c b/Compat.c
index 43d02ec7..1077c08b 100644
--- a/Compat.c
+++ b/Compat.c
@@ -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;
}

© 2014-2024 Faster IT GmbH | imprint | privacy policy