summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdlib
diff options
context:
space:
mode:
authormike <mike@FreeBSD.org>2002-10-03 06:33:33 +0000
committermike <mike@FreeBSD.org>2002-10-03 06:33:33 +0000
commit00edc47a87e6774d2cede63804f6f34ef87b4540 (patch)
treeadee14bae63f855c7b3739f3a04f94c7e81551a7 /lib/libc/stdlib
parent607bcfa63afdf8a99d2232f78123af8c1819c962 (diff)
downloadFreeBSD-src-00edc47a87e6774d2cede63804f6f34ef87b4540.zip
FreeBSD-src-00edc47a87e6774d2cede63804f6f34ef87b4540.tar.gz
Add missing const qualifier in tfind().
Diffstat (limited to 'lib/libc/stdlib')
-rw-r--r--lib/libc/stdlib/tfind.c2
-rw-r--r--lib/libc/stdlib/tsearch.32
2 files changed, 2 insertions, 2 deletions
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
OpenPOWER on IntegriCloud