selinux: specialize symtab insert and search functions
This encapsulates symtab a little better and will help with further refactoring later. Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com> Acked-by: Stephen Smalley <stephen.smalley.work@gmail.com> Signed-off-by: Paul Moore <paul@paul-moore.com>
This commit is contained in:

committed by
Paul Moore

vanhempi
2c3d8dfece
commit
237389e301
@@ -39,3 +39,12 @@ int symtab_init(struct symtab *s, unsigned int size)
|
||||
return hashtab_init(&s->table, symhash, symcmp, size);
|
||||
}
|
||||
|
||||
int symtab_insert(struct symtab *s, char *name, void *datum)
|
||||
{
|
||||
return hashtab_insert(&s->table, name, datum);
|
||||
}
|
||||
|
||||
void *symtab_search(struct symtab *s, const char *name)
|
||||
{
|
||||
return hashtab_search(&s->table, name);
|
||||
}
|
||||
|
Viittaa uudesa ongelmassa
Block a user