remove unnecessary strcmp wrapper, use typecasting instead

This commit is contained in:
Ariadne Conill 2020-07-28 17:57:51 -04:00
parent cfbfa07e85
commit 81d0ebc3e8
6 changed files with 6 additions and 52 deletions

View file

@ -53,7 +53,7 @@ lif_dict_add(struct lif_dict *dict, const char *key, void *data)
struct lif_dict_entry *
lif_dict_add_once(struct lif_dict *dict, const char *key, void *data,
int (*compar)(const void *, const void *))
lif_dict_cmp_t compar)
{
struct lif_list *existing = lif_dict_find_all(dict, key);
if (existing != NULL)