summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib/tfind.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/tfind.c')
-rw-r--r--lib/libc/stdlib/tfind.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/lib/libc/stdlib/tfind.c b/lib/libc/stdlib/tfind.c
index c5d66cf..0ad391e 100644
--- a/lib/libc/stdlib/tfind.c
+++ b/lib/libc/stdlib/tfind.c
@@ -23,12 +23,15 @@ __FBSDID("$FreeBSD$");
#include <stdlib.h>
#include <search.h>
-/* find a node, or return 0 */
+/*
+ * find a node, or return 0
+ *
+ * vkey - key to be found
+ * vrootp - address of the tree root
+ */
void *
-tfind(vkey, vrootp, compar)
- const void *vkey; /* key to be found */
- void * const *vrootp; /* address of the tree root */
- int (*compar)(const void *, const void *);
+tfind(const void *vkey, void * const *vrootp,
+ int (*compar)(const void *, const void *))
{
node_t **rootp = (node_t **)vrootp;
OpenPOWER on IntegriCloud