[PATCH] Move hash collision warnings undef ! be_quiet
Jakub Jelinek
jakub@redhat.com
Tue Aug 27 23:41:00 GMT 2002
Hi!
2002-08-28 Jakub Jelinek <jakub@redhat.com>
* locale/programs/locarchive.c (insert_name): Suppress warnings about
hash collisions if be_quiet.
--- libc/locale/programs/locarchive.c.jj Thu Aug 22 06:22:05 2002
+++ libc/locale/programs/locarchive.c Wed Aug 28 02:37:27 2002
@@ -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;
Jakub
More information about the Libc-hacker
mailing list