mirror of https://github.com/xzeldon/htop.git
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:
parent
99cde7edec
commit
d63394b5f6
2
Compat.c
2
Compat.c
|
@ -37,7 +37,7 @@ int Compat_faccessat(int dirfd,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Error out on unsupported configurations
|
// Error out on unsupported configurations
|
||||||
if (dirfd != AT_FDCWD || mode != F_OK) {
|
if (dirfd != (int)AT_FDCWD || mode != F_OK) {
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue