aboutsummaryrefslogtreecommitdiffstats
path: root/src/tree.c
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2008-08-29 09:01:53 +0200
committerMax Kellermann <max@duempel.org>2008-08-29 09:01:53 +0200
commit12bcba8b89ad503cbdfb8261c5c26b9f87860345 (patch)
tree640d2f57cd4f9e5059db9b0c533b7919d4ddb52f /src/tree.c
parentd8a8fa63b40801f597cc374bcfcbdd397aa0a670 (diff)
downloadmpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.tar.gz
mpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.tar.xz
mpd-12bcba8b89ad503cbdfb8261c5c26b9f87860345.zip
pass constant pointers
And again, convert arguments to const.
Diffstat (limited to '')
-rw-r--r--src/tree.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tree.c b/src/tree.c
index 8b577c853..c6412f310 100644
--- a/src/tree.c
+++ b/src/tree.c
@@ -71,7 +71,7 @@ _ClearKeyData(TreeKeyData * keyData)
static
int
-_FindPosition(Tree * tree, TreeNode * node, void * key, int * pos)
+_FindPosition(Tree * tree, TreeNode * node, const void * key, int * pos)
{
#ifdef USE_BINARY_SEARCH
int low = 0;
@@ -113,7 +113,7 @@ _FindPosition(Tree * tree, TreeNode * node, void * key, int * pos)
static
int
-_Find(TreeIterator * iter, void * key)
+_Find(TreeIterator * iter, const void * key)
{
while (1)
{
@@ -680,7 +680,7 @@ RemoveFromTreeByIterator(Tree * tree, TreeIterator * iter)
}
int
-FindInTree(Tree * tree, void * key, TreeIterator * iter)
+FindInTree(Tree * tree, const void * key, TreeIterator * iter)
{
TreeIterator i;