make the avl node key const
[project/libubox.git] / avl.h
diff --git a/avl.h b/avl.h
index a563716..46a396f 100644 (file)
--- a/avl.h
+++ b/avl.h
@@ -82,7 +82,7 @@ struct avl_node {
   /**
    * pointer to key of node
    */
-  void *key;
+  const void *key;
 
   /**
    * balance state of AVL tree (0,-1,+1)