The first patch is just a cleanup to have a single hashtab function that can add elements, simplifying slightly the second patch, which implements the actual auto-growing of hash tables. Please see the log messages of the patches for more details. Ondrej Mosnacek (2): libsepol,newrole: remove unused hashtab functions libsepol: grow hashtab dynamically libsepol/include/sepol/policydb/hashtab.h | 28 ----- libsepol/src/hashtab.c | 127 +++++++--------------- policycoreutils/newrole/hashtab.c | 85 --------------- policycoreutils/newrole/hashtab.h | 28 ----- 4 files changed, 42 insertions(+), 226 deletions(-) -- 2.24.1