summaryrefslogtreecommitdiffstats
path: root/color.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2019-03-27 21:04:05 -0400
committerTavian Barnes <tavianator@tavianator.com>2019-03-27 21:04:05 -0400
commitce5be644a16b3e4e7fdba0e0e4537daf3da70676 (patch)
treef198dbe1fc6d034f5ffcb6189af9fca2b7019554 /color.c
parent4216dbac10887476feef287854e9e4037f2d1a59 (diff)
downloadbfs-ce5be644a16b3e4e7fdba0e0e4537daf3da70676.tar.xz
trie: Store void* values rather than const void*
Fewer casts needed this way.
Diffstat (limited to 'color.c')
-rw-r--r--color.c2
1 files changed, 1 insertions, 1 deletions
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;