Commit 5e99b81
selinux: rework match_ipv6_addrmask()
Constify parameters, add size hints, and simplify control flow.
According to godbolt the same assembly is generated.
Signed-off-by: Christian Göttsche <[email protected]>
Signed-off-by: Paul Moore <[email protected]>1 parent 9090308 commit 5e99b81
1 file changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2597 | 2597 | | |
2598 | 2598 | | |
2599 | 2599 | | |
2600 | | - | |
| 2600 | + | |
2601 | 2601 | | |
2602 | | - | |
| 2602 | + | |
2603 | 2603 | | |
2604 | 2604 | | |
2605 | | - | |
2606 | | - | |
2607 | | - | |
2608 | | - | |
| 2605 | + | |
| 2606 | + | |
2609 | 2607 | | |
2610 | | - | |
| 2608 | + | |
2611 | 2609 | | |
2612 | 2610 | | |
2613 | 2611 | | |
| |||
0 commit comments