summaryrefslogtreecommitdiffstats
path: root/login-utils/selinux_utils.c
diff options
context:
space:
mode:
authorKarel Zak2011-08-01 16:23:53 +0200
committerKarel Zak2011-08-01 16:23:53 +0200
commit85d7a416f1a16636cc4805ff41e88189c17cc5b2 (patch)
tree18ba58d83a437ff7807a3eb04860dc7ce1b20236 /login-utils/selinux_utils.c
parentchsh: fix compiler warnings [-Wsign-compare] (diff)
downloadkernel-qcow2-util-linux-85d7a416f1a16636cc4805ff41e88189c17cc5b2.tar.gz
kernel-qcow2-util-linux-85d7a416f1a16636cc4805ff41e88189c17cc5b2.tar.xz
kernel-qcow2-util-linux-85d7a416f1a16636cc4805ff41e88189c17cc5b2.zip
chrt: [selinux] fix compiler warnings [-Wsign-compare]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'login-utils/selinux_utils.c')
-rw-r--r--login-utils/selinux_utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/login-utils/selinux_utils.c b/login-utils/selinux_utils.c
index 2db5dd3d0..caceaf4fd 100644
--- a/login-utils/selinux_utils.c
+++ b/login-utils/selinux_utils.c
@@ -25,7 +25,7 @@ int checkAccess(char *chuser, int access) {
&avd);
if ((retval == 0) &&
- ((access & avd.allowed) == access)) {
+ ((access & avd.allowed) == (unsigned) access)) {
status=0;
}
}