git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa65506
)
SELinux: use ARRAY_SIZE
author
Himangi Saraogi
<himangi774@gmail.com>
Mon, 16 Jun 2014 20:11:05 +0000
(
01:41
+0530)
committer
Paul Moore
<pmoore@redhat.com>
Tue, 17 Jun 2014 21:36:02 +0000
(17:36 -0400)
ARRAY_SIZE is more concise to use when the size of an array is divided
by the size of its type or the size of its first element.
The Coccinelle semantic patch that makes this change is as follows:
// <smpl>
@@
type T;
T[] E;
@@
- (sizeof(E)/sizeof(E[...]))
+ ARRAY_SIZE(E)
// </smpl>
Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/policydb.c
patch
|
blob
|
history
diff --cc
security/selinux/ss/policydb.c
Simple merge