]> Savannah Git Hosting - gnulib.git/commitdiff
tsearch: Move from K&R C to ANSI C.
authorBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 22:04:54 +0000 (00:04 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 13 May 2018 22:04:54 +0000 (00:04 +0200)
* lib/tsearch.c (tfind): Convert definition to ANSI C.

ChangeLog
lib/tsearch.c

index 4dee31dfe63083848b9744e376533eae20e80a89..a0bc2f5359084633de1a847b83e2534e061fd62f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-05-13  Bruno Haible  <bruno@clisp.org>
+
+       tsearch: Move from K&R C to ANSI C.
+       * lib/tsearch.c (tfind): Convert definition to ANSI C.
+
 2018-05-13  Bruno Haible  <bruno@clisp.org>
 
        tsearch: Fix compilation error on Android.
index dabd760631b9b208a24ae25f1d7caad722ae78e9..80132da1201a007fab2cb5928cae43487842fc12 100644 (file)
@@ -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;