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:
Christian Göttsche 2020-12-07 15:21:57 +01:00 committed by BenBE
parent 4f88d38256
commit 05969998c1
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}