summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-06-14 02:12:45 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-06-14 02:12:45 +0000
commitbff2c639ffb6a4a897eb13e0754bbd31a8b9749d (patch)
treeade4137fec7dad4fee6e9bd3df41f44360f9a2a8
parent27fa9e6ee6bb355495394422ec062ef8c820bdf1 (diff)
Fix decl for tfind(3)
-rw-r--r--include/search.h2
-rw-r--r--lib/libc/stdlib/tfind.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/search.h b/include/search.h
index a2889bfd1b2..a421e5a82ef 100644
--- a/include/search.h
+++ b/include/search.h
@@ -47,7 +47,7 @@ extern void remque __P((void *));
extern void *tdelete __P((const void *, void **,
int (*)(const void *, const void *)));
-extern void *tfind __P((const void *, void **,
+extern void *tfind __P((const void *, void * const *,
int (*)(const void *, const void *)));
extern void *tsearch __P((const void *, void **,
int (*)(const void *, const void *)));
diff --git a/lib/libc/stdlib/tfind.c b/lib/libc/stdlib/tfind.c
index 8e77527bf51..9e5bd4b0f25 100644
--- a/lib/libc/stdlib/tfind.c
+++ b/lib/libc/stdlib/tfind.c
@@ -21,7 +21,7 @@ typedef struct node_t
void *
tfind(vkey, vrootp, compar)
const void *vkey; /* key to be found */
- void **vrootp; /* address of the tree root */
+ void *const *vrootp; /* address of the tree root */
int (*compar) __P((const void *, const void *));
{
char *key = (char *)vkey;