diff options
author | Max Kellermann <max@duempel.org> | 2008-08-29 09:01:53 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2008-08-29 09:01:53 +0200 |
commit | 12bcba8b89ad503cbdfb8261c5c26b9f87860345 (patch) | |
tree | 640d2f57cd4f9e5059db9b0c533b7919d4ddb52f /src/tree.c | |
parent | d8a8fa63b40801f597cc374bcfcbdd397aa0a670 (diff) | |
download | mpd-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.c | 6 |
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; |