Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 16341
b: refs/heads/master
c: 32725ad
h: refs/heads/master
i:
  16339: 4ae280c
v: v3
  • Loading branch information
Tobias Klauser authored and Linus Torvalds committed Jan 6, 2006
1 parent 1988ca5 commit 565ed77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6e20a64a3913819133fefeca466211c7eb8adda1
refs/heads/master: 32725ad8430b58e42c5d54757ce7871e680d05cb
2 changes: 1 addition & 1 deletion trunk/security/selinux/ss/avtab.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ int avtab_read_item(void *fp, u32 vers, struct avtab *a,
return -1;
}

for (i = 0; i < sizeof(spec_order)/sizeof(u16); i++) {
for (i = 0; i < ARRAY_SIZE(spec_order); i++) {
if (val & spec_order[i]) {
key.specified = spec_order[i] | enabled;
datum.data = le32_to_cpu(buf32[items++]);
Expand Down
2 changes: 1 addition & 1 deletion trunk/security/selinux/ss/policydb.c
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ static struct policydb_compat_info *policydb_lookup_compat(int version)
int i;
struct policydb_compat_info *info = NULL;

for (i = 0; i < sizeof(policydb_compat)/sizeof(*info); i++) {
for (i = 0; i < ARRAY_SIZE(policydb_compat); i++) {
if (policydb_compat[i].version == version) {
info = &policydb_compat[i];
break;
Expand Down

0 comments on commit 565ed77

Please sign in to comment.