diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-22 20:33:26 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-22 20:33:26 +0000 |
commit | 8414999524922f0d9bb712cda7a34c497c8ffc31 (patch) | |
tree | b6a11547a944037acd51b308d609245d0a095c60 | |
parent | 5eb68d6330f16f331f60ffbb9479f5629fdce5c4 (diff) | |
download | coreutils-8414999524922f0d9bb712cda7a34c497c8ffc31.tar.xz |
Change all uses of __const to const.
-rw-r--r-- | lib/search_.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/search_.h b/lib/search_.h index 01d6f6475..626362270 100644 --- a/lib/search_.h +++ b/lib/search_.h @@ -1,7 +1,7 @@ /* For use with hsearch(3). */ #ifndef __COMPAR_FN_T # define __COMPAR_FN_T -typedef int (*__compar_fn_t) (__const void *, __const void *); +typedef int (*__compar_fn_t) (const void *, const void *); # ifdef __USE_GNU typedef __compar_fn_t comparison_fn_t; @@ -24,28 +24,28 @@ VISIT; /* Search for an entry matching the given KEY in the tree pointed to by *ROOTP and insert a new element if not found. */ -extern void *tsearch (__const void *__key, void **__rootp, +extern void *tsearch (const void *__key, void **__rootp, __compar_fn_t __compar); /* Search for an entry matching the given KEY in the tree pointed to by *ROOTP. If no matching entry is available return NULL. */ -extern void *tfind (__const void *__key, void *__const *__rootp, +extern void *tfind (const void *__key, void *const *__rootp, __compar_fn_t __compar); /* Remove the element matching KEY from the tree pointed to by *ROOTP. */ -extern void *tdelete (__const void *__restrict __key, +extern void *tdelete (const void *__restrict __key, void **__restrict __rootp, __compar_fn_t __compar); #ifndef __ACTION_FN_T # define __ACTION_FN_T -typedef void (*__action_fn_t) (__const void *__nodep, VISIT __value, +typedef void (*__action_fn_t) (const void *__nodep, VISIT __value, int __level); #endif /* Walk through the whole tree and call the ACTION callback for every node or leaf. */ -extern void twalk (__const void *__root, __action_fn_t __action); +extern void twalk (const void *__root, __action_fn_t __action); #ifdef __USE_GNU /* Callback type for function to free a tree node. If the keys are atomic |