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>
This commit is contained in:
Christian Göttsche 2023-07-06 15:23:31 +02:00 committed by Paul Moore
parent 7128578c79
commit 0e83c9c6fb
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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);