From: Bruno Haible Date: Sun, 13 May 2018 22:04:54 +0000 (+0200) Subject: tsearch: Move from K&R C to ANSI C. X-Git-Tag: v1.0~5600 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=11458762fb6fab692049f0cbecbc171ec3ebd2a2;p=gnulib.git tsearch: Move from K&R C to ANSI C. * lib/tsearch.c (tfind): Convert definition to ANSI C. --- 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;