summaryrefslogtreecommitdiff
path: root/libc/misc/search/tsearch.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:44:48 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2005-12-08 14:44:48 +0000
commit960acb5e3248b2ba657f65ea011703c57539c5a8 (patch)
tree4a3b0d42a1b25c614074f4b7635aa15e9abefba6 /libc/misc/search/tsearch.c
parentc6023f4908ee819063fdbbd5d51a5a51548ed573 (diff)
Implement __tfind/__lfind and use them
Diffstat (limited to 'libc/misc/search/tsearch.c')
-rw-r--r--libc/misc/search/tsearch.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/search/tsearch.c b/libc/misc/search/tsearch.c
index 93a2c678f..58f16ab79 100644
--- a/libc/misc/search/tsearch.c
+++ b/libc/misc/search/tsearch.c
@@ -81,7 +81,7 @@ strong_alias(__tsearch,tsearch)
#endif
#ifdef L_tfind
-void *tfind(__const void *key, void * __const *vrootp, __compar_fn_t compar)
+void attribute_hidden *__tfind(__const void *key, void * __const *vrootp, __compar_fn_t compar)
{
register node **rootp = (node **) vrootp;
@@ -99,6 +99,7 @@ void *tfind(__const void *key, void * __const *vrootp, __compar_fn_t compar)
}
return NULL;
}
+strong_alias(__tfind,tfind)
#endif
#ifdef L_tdelete