summaryrefslogtreecommitdiff
path: root/lib/tsearch.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2018-05-14 00:04:54 +0200
committerBruno Haible <bruno@clisp.org>2018-05-14 00:04:54 +0200
commit11458762fb6fab692049f0cbecbc171ec3ebd2a2 (patch)
treec4f1b4e85ca86326b63341e7133ff11a53729a35 /lib/tsearch.c
parentb239920976585555781e8ed56ee8ba95ef2060f7 (diff)
downloadgnulib-11458762fb6fab692049f0cbecbc171ec3ebd2a2.tar.gz
tsearch: Move from K&R C to ANSI C.
* lib/tsearch.c (tfind): Convert definition to ANSI C.
Diffstat (limited to 'lib/tsearch.c')
-rw-r--r--lib/tsearch.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/lib/tsearch.c b/lib/tsearch.c
index dabd760631..80132da120 100644
--- a/lib/tsearch.c
+++ b/lib/tsearch.c
@@ -333,10 +333,7 @@ weak_alias (__tsearch, tsearch)
KEY is the key to be located, ROOTP is the address of tree root,
COMPAR the ordering function. */
void *
-__tfind (key, vrootp, compar)
- const void *key;
- void *const *vrootp;
- __compar_fn_t compar;
+__tfind (const void *key, void *const *vrootp, __compar_fn_t compar)
{
node *rootp = (node *) vrootp;