From 11458762fb6fab692049f0cbecbc171ec3ebd2a2 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Mon, 14 May 2018 00:04:54 +0200 Subject: [PATCH] tsearch: Move from K&R C to ANSI C. * lib/tsearch.c (tfind): Convert definition to ANSI C. --- ChangeLog | 5 +++++ lib/tsearch.c | 5 +---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 4dee31dfe6..a0bc2f5359 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-05-13 Bruno Haible + + tsearch: Move from K&R C to ANSI C. + * lib/tsearch.c (tfind): Convert definition to ANSI C. + 2018-05-13 Bruno Haible tsearch: Fix compilation error on Android. 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; -- 2.39.5