]> Pileus Git - ~andy/linux/blobdiff - security/selinux/ss/policydb.c
SELinux: fix selinuxfs policy file on big endian systems
[~andy/linux] / security / selinux / ss / policydb.c
index 9cd9b7c661ec16bd821f45a9e1a40ad69320f20c..3fc8969b499c5e3f6f4898c8c1f7583df8b11e9c 100644 (file)
@@ -3200,9 +3200,8 @@ static int range_write_helper(void *key, void *data, void *ptr)
 
 static int range_write(struct policydb *p, void *fp)
 {
-       size_t nel;
        __le32 buf[1];
-       int rc;
+       int rc, nel;
        struct policy_data pd;
 
        pd.p = p;