aboutsummaryrefslogtreecommitdiff
path: root/misc/tsearch.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-11-25 01:26:30 +0000
committerUlrich Drepper <drepper@redhat.com>2000-11-25 01:26:30 +0000
commit2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10 (patch)
treee4c33d64a53d79197df9f3799d7d39886728744f /misc/tsearch.c
parent9c0592ab3b82691480fff3732239d5892d367df9 (diff)
downloadglibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.tar
glibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.tar.gz
glibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.tar.bz2
glibc-2a068d20fbe9e59b9c43dbeb9fa54999bdb19e10.zip
Update.
* locale/findlocale.c: Add casts to avoid warnings. * locale/localeinfo.h (LIMAGIC): Add cast to avoid warnings. * misc/efgcvt_r.c (fcvt_r): Use ssize_t instead of int and add cast to avoid warnings. * misc/tsearch.c (const_node): New type. (trecurse): Correct casts to avoid warnings. (__twalk): Likewise. * stdlib/tst-limits.c: Add z modifier to formats for WORD_BIT and LONG_BIT. * debug/backtrace-tst.c (compare): Add casts to avoid warnings.
Diffstat (limited to 'misc/tsearch.c')
-rw-r--r--misc/tsearch.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/misc/tsearch.c b/misc/tsearch.c
index 0cf854b8bc..e9b587cf1c 100644
--- a/misc/tsearch.c
+++ b/misc/tsearch.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Bernd Schmidt <crux@Pool.Informatik.RWTH-Aachen.DE>, 1997.
@@ -97,6 +97,7 @@ typedef struct node_t
struct node_t *right;
unsigned int red:1;
} *node;
+typedef const struct node_t *const_node;
#undef DEBUGGING
@@ -594,7 +595,7 @@ static void
internal_function
trecurse (const void *vroot, __action_fn_t action, int level)
{
- node root = (node ) vroot;
+ const_node root = (const_node) vroot;
if (root->left == NULL && root->right == NULL)
(*action) (root, leaf, level);
@@ -617,7 +618,7 @@ trecurse (const void *vroot, __action_fn_t action, int level)
void
__twalk (const void *vroot, __action_fn_t action)
{
- const node root = (node) vroot;
+ const_node root = (const_node) vroot;
CHECK_TREE (root);