utils: fix build on Mac OS X 10.12
[project/libubox.git] / vlist.c
diff --git a/vlist.c b/vlist.c
index b2de7d6..d497c63 100644 (file)
--- a/vlist.c
+++ b/vlist.c
@@ -33,7 +33,7 @@ vlist_delete(struct vlist_tree *tree, struct vlist_node *node)
 }
 
 void
-vlist_add(struct vlist_tree *tree, struct vlist_node *node, void *key)
+vlist_add(struct vlist_tree *tree, struct vlist_node *node, const void *key)
 {
        struct vlist_node *old_node = NULL;
        struct avl_node *anode;