From 00edc47a87e6774d2cede63804f6f34ef87b4540 Mon Sep 17 00:00:00 2001 From: mike Date: Thu, 3 Oct 2002 06:33:33 +0000 Subject: Add missing const qualifier in tfind(). --- lib/libc/stdlib/tfind.c | 2 +- lib/libc/stdlib/tsearch.3 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/libc/stdlib') diff --git a/lib/libc/stdlib/tfind.c b/lib/libc/stdlib/tfind.c index 18e0a30..680ff32 100644 --- a/lib/libc/stdlib/tfind.c +++ b/lib/libc/stdlib/tfind.c @@ -28,7 +28,7 @@ __FBSDID("$FreeBSD$"); 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)(const void *, const void *); { node_t **rootp = (node_t **)vrootp; diff --git a/lib/libc/stdlib/tsearch.3 b/lib/libc/stdlib/tsearch.3 index 8ff0179..cfe39c2 100644 --- a/lib/libc/stdlib/tsearch.3 +++ b/lib/libc/stdlib/tsearch.3 @@ -38,7 +38,7 @@ .Ft void * .Fn tdelete "const void * restrict key" "void ** restrict rootp" "int (*compar) (const void *, const void *)" .Ft void * -.Fn tfind "const void *key" "void **rootp" "int (*compar) (const void *, const void *)" +.Fn tfind "const void *key" "void * const *rootp" "int (*compar) (const void *, const void *)" .Ft void * .Fn tsearch "const void *key" "void **rootp" "int (*compar) (const void *, const void *)" .Ft void -- cgit v1.1