Commit 0e83c9c6 authored by Christian Göttsche's avatar Christian Göttsche Committed by Paul Moore

selinux: fix implicit conversions in the symtab

hashtab_init() takes an u32 as size parameter type.
Signed-off-by: default avatarChristian Göttsche <cgzones@googlemail.com>
[PM: subject line tweaks]
Signed-off-by: default avatarPaul Moore <paul@paul-moore.com>
parent 7128578c
...@@ -37,7 +37,7 @@ static const struct hashtab_key_params symtab_key_params = { ...@@ -37,7 +37,7 @@ static const struct hashtab_key_params symtab_key_params = {
.cmp = symcmp, .cmp = symcmp,
}; };
int symtab_init(struct symtab *s, unsigned int size) int symtab_init(struct symtab *s, u32 size)
{ {
s->nprim = 0; s->nprim = 0;
return hashtab_init(&s->table, size); return hashtab_init(&s->table, size);
......
...@@ -17,7 +17,7 @@ struct symtab { ...@@ -17,7 +17,7 @@ struct symtab {
u32 nprim; /* number of primary names in table */ 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); int symtab_insert(struct symtab *s, char *name, void *datum);
void *symtab_search(struct symtab *s, const char *name); void *symtab_search(struct symtab *s, const char *name);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment