]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
chrt: [selinux] fix compiler warnings [-Wsign-compare]
authorKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 14:23:53 +0000 (16:23 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 1 Aug 2011 14:23:53 +0000 (16:23 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
login-utils/selinux_utils.c

index 2db5dd3d09e18948efa7c9062ca990da62246a0b..caceaf4fda347a2fe8dcee0b8f25c6678e06ca36 100644 (file)
@@ -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;
       }
     }