diff options
Diffstat (limited to 'lib/libc')
-rw-r--r-- | lib/libc/stdlib/tfind.c | 2 | ||||
-rw-r--r-- | lib/libc/stdlib/tsearch.3 | 2 |
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 |