summaryrefslogtreecommitdiff
path: root/src/lib/libc/stdlib/tfind.c
diff options
context:
space:
mode:
authorpat <>2005-03-30 18:51:49 +0000
committerpat <>2005-03-30 18:51:49 +0000
commit894b6ab0099e7d9ca2ad9acb75246cd0a4542167 (patch)
treef9fb8e9324f6cbdc10d72cab8b889d470252465a /src/lib/libc/stdlib/tfind.c
parent162f8b042bf31ab94714a6f194e9836c08c085f5 (diff)
downloadopenbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.gz
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.tar.bz2
openbsd-894b6ab0099e7d9ca2ad9acb75246cd0a4542167.zip
ansi + de-register
ok otto deraadt
Diffstat (limited to '')
-rw-r--r--src/lib/libc/stdlib/tfind.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/lib/libc/stdlib/tfind.c b/src/lib/libc/stdlib/tfind.c
index 34b916db6c..ff6bcd742d 100644
--- a/src/lib/libc/stdlib/tfind.c
+++ b/src/lib/libc/stdlib/tfind.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: tfind.c,v 1.4 2004/10/01 04:08:45 jsg Exp $ */ 1/* $OpenBSD: tfind.c,v 1.5 2005/03/30 18:51:49 pat Exp $ */
2 2
3/* 3/*
4 * Tree search generalized from Knuth (6.2.2) Algorithm T just like 4 * Tree search generalized from Knuth (6.2.2) Algorithm T just like
@@ -21,10 +21,8 @@ typedef struct node_t
21 21
22/* find a node, or return 0 */ 22/* find a node, or return 0 */
23void * 23void *
24tfind(vkey, vrootp, compar) 24tfind(const void *vkey, void * const *vrootp,
25 const void *vkey; /* key to be found */ 25 int (*compar)(const void *, const void *))
26 void *const *vrootp; /* address of the tree root */
27 int (*compar)(const void *, const void *);
28{ 26{
29 char *key = (char *)vkey; 27 char *key = (char *)vkey;
30 node **rootp = (node **)vrootp; 28 node **rootp = (node **)vrootp;