aboutsummaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-08-28 06:59:48 +0000
committerRoland McGrath <roland@gnu.org>2002-08-28 06:59:48 +0000
commit75261665f1dd29bdfedfe653a8d102fab2d012e6 (patch)
treeccccec0af6f04172e1b97d6817c5817073aaca88 /locale
parenta5cc88e5d05e4d7b1c2ead2ac7f9acf0bf7699aa (diff)
downloadglibc-75261665f1dd29bdfedfe653a8d102fab2d012e6.zip
glibc-75261665f1dd29bdfedfe653a8d102fab2d012e6.tar.gz
glibc-75261665f1dd29bdfedfe653a8d102fab2d012e6.tar.bz2
2002-08-28 Jakub Jelinek <jakub@redhat.com>
* locale/programs/locarchive.c (insert_name): Suppress warnings about hash collisions if be_quiet. * locale/locale.h (__newlocale, __duplocale, __freelocale, __uselocale): Don't declare these any more. * include/locale.h (__uselocale): Declare here instead, using __typeof.
Diffstat (limited to 'locale')
-rw-r--r--locale/programs/locarchive.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c
index 4983214..967589f 100644
--- a/locale/programs/locarchive.c
+++ b/locale/programs/locarchive.c
@@ -547,13 +547,12 @@ insert_name (struct locarhandle *ah,
break;
}
- if (namehashtab[idx].hashval == hval)
+ if (namehashtab[idx].hashval == hval && ! be_quiet)
{
error (0, 0, "hash collision (%u) %s, %s",
hval, name, (char *) ah->addr + namehashtab[idx].name_offset);
}
-
/* Remember the first place we can insert the new entry. */
if (namehashtab[idx].locrec_offset == 0 && insert_idx == -1)
insert_idx = idx;