summaryrefslogtreecommitdiffstats
path: root/linux/SELinuxMeter.c
diff options
context:
space:
mode:
authorChristian Göttsche <cgzones@googlemail.com>2020-12-07 15:21:57 +0100
committerBenBE <BenBE@geshi.org>2020-12-07 16:05:12 +0100
commit05969998c1d8262f9137993cbb4c2d0418ccae9d (patch)
tree836c5cf4cca919e8ecc6441abaae34abe4f2c8d9 /linux/SELinuxMeter.c
parent4f88d382563c3be579544f9de162201542652f88 (diff)
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: https://github.com/SELinuxProject/selinux/blob/7df27b78e9eecbe65a57cdfefb9e51f547231b20/libselinux/src/init.c#L40
Diffstat (limited to 'linux/SELinuxMeter.c')
-rw-r--r--linux/SELinuxMeter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/SELinuxMeter.c b/linux/SELinuxMeter.c
index 64a3f2a7..892f1e82 100644
--- a/linux/SELinuxMeter.c
+++ b/linux/SELinuxMeter.c
@@ -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;
}

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