diff options
author | Ondrej Mosnacek <omosnace@redhat.com> | 2020-02-03 12:27:20 +0100 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2020-02-11 21:39:41 -0500 |
commit | 60abd3181db29ea81742106cc0ac2e27fd05b418 (patch) | |
tree | 45792720462b0de5a5ef3eaa7a1269daaae95470 /security/selinux/include/conditional.h | |
parent | 8d269a8e2a8f0bca89022f4ec98de460acb90365 (diff) |
selinux: convert cond_list to array
Since it is fixed-size after allocation and we know the size beforehand,
using a plain old array is simpler and more efficient.
While there, also fix signedness of some related variables/parameters.
Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security/selinux/include/conditional.h')
-rw-r--r-- | security/selinux/include/conditional.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/security/selinux/include/conditional.h b/security/selinux/include/conditional.h index 0ab316f61da0..539ab357707d 100644 --- a/security/selinux/include/conditional.h +++ b/security/selinux/include/conditional.h @@ -14,12 +14,10 @@ #include "security.h" int security_get_bools(struct selinux_state *state, - int *len, char ***names, int **values); + u32 *len, char ***names, int **values); -int security_set_bools(struct selinux_state *state, - int len, int *values); +int security_set_bools(struct selinux_state *state, u32 len, int *values); -int security_get_bool_value(struct selinux_state *state, - int index); +int security_get_bool_value(struct selinux_state *state, u32 index); #endif |