mirror of https://github.com/xzeldon/htop.git
SELinuxMeter: silence comparison warning on 32-bit
linux/SELinuxMeter.c: In function ‘hasSELinuxMount’:
linux/SELinuxMeter.c:38:21: warning: comparison of integer expressions of different signedness: ‘__fsword_t’ {aka ‘int’} and ‘unsigned int’ [-Wsign-compare]
38 | if (sfbuf.f_type != SELINUX_MAGIC) {
| ^~
Origin: 7df27b78e9/libselinux/src/init.c (L40)
This commit is contained in:
parent
4f88d38256
commit
05969998c1
|
@ -35,7 +35,7 @@ static bool hasSELinuxMount(void) {
|
|||
return false;
|
||||
}
|
||||
|
||||
if (sfbuf.f_type != SELINUX_MAGIC) {
|
||||
if ((uint32_t)sfbuf.f_type != (uint32_t)SELINUX_MAGIC) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue