diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2023-07-06 15:23:31 +0200 |
---|---|---|
committer | Paul Moore <paul@paul-moore.com> | 2023-07-18 18:29:49 -0400 |
commit | 0e83c9c6fb0d7d2fddd2cd02575d7ad157e12837 (patch) | |
tree | d8d73c4e85110ebfcf46b6010527fd605669c873 /security | |
parent | 7128578c79a73760305f89ff975047c124919dfc (diff) | |
download | linux-stable-0e83c9c6fb0d7d2fddd2cd02575d7ad157e12837.tar.gz linux-stable-0e83c9c6fb0d7d2fddd2cd02575d7ad157e12837.tar.bz2 linux-stable-0e83c9c6fb0d7d2fddd2cd02575d7ad157e12837.zip |
selinux: fix implicit conversions in the symtab
hashtab_init() takes an u32 as size parameter type.
Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
[PM: subject line tweaks]
Signed-off-by: Paul Moore <paul@paul-moore.com>
Diffstat (limited to 'security')
-rw-r--r-- | security/selinux/ss/symtab.c | 2 | ||||
-rw-r--r-- | security/selinux/ss/symtab.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/ss/symtab.c b/security/selinux/ss/symtab.c index c42a6648a07d..7a77571fb275 100644 --- a/security/selinux/ss/symtab.c +++ b/security/selinux/ss/symtab.c @@ -37,7 +37,7 @@ static const struct hashtab_key_params symtab_key_params = { .cmp = symcmp, }; -int symtab_init(struct symtab *s, unsigned int size) +int symtab_init(struct symtab *s, u32 size) { s->nprim = 0; return hashtab_init(&s->table, size); diff --git a/security/selinux/ss/symtab.h b/security/selinux/ss/symtab.h index f2614138d0cd..3033c4db6cb6 100644 --- a/security/selinux/ss/symtab.h +++ b/security/selinux/ss/symtab.h @@ -17,7 +17,7 @@ struct symtab { u32 nprim; /* number of primary names in table */ }; -int symtab_init(struct symtab *s, unsigned int size); +int symtab_init(struct symtab *s, u32 size); int symtab_insert(struct symtab *s, char *name, void *datum); void *symtab_search(struct symtab *s, const char *name); |