From ce5be644a16b3e4e7fdba0e0e4537daf3da70676 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 27 Mar 2019 21:04:05 -0400 Subject: trie: Store void* values rather than const void* Fewer casts needed this way. --- color.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'color.c') diff --git a/color.c b/color.c index e7c2958..29a87e1 100644 --- a/color.c +++ b/color.c @@ -188,7 +188,7 @@ static int set_ext_color(struct colors *colors, const char *key, const char *val struct trie_leaf *leaf = trie_insert_str(&colors->ext_colors, xfrm); free(xfrm); if (leaf) { - leaf->value = value; + leaf->value = (char *)value; return 0; } else { return -1; -- cgit v1.2.3