vlist: constify key argument to vlist_add
[project/libubox.git] / vlist.c
diff --git a/vlist.c b/vlist.c
index b2de7d64c389e91778082d045bb9ae30a9af7048..d497c63284ead3cb3d7ec9d750b0bcb93a1fce16 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;