1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Restore sanity check in address_list_set_faulty.

This commit is contained in:
hniksic 2001-12-09 18:33:08 -08:00
parent 943f657aa7
commit fb9368e889
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,7 @@
2001-12-10 Hrvoje Niksic <hniksic@arsdigita.com>
* host.c (address_list_set_faulty): Uncomment a sanity check.
2001-12-10 Hrvoje Niksic <hniksic@arsdigita.com>
* utils.c (long_to_string): Return a pointer after where the

View File

@ -124,12 +124,10 @@ address_list_match_all (struct address_list *al1, struct address_list *al2)
void
address_list_set_faulty (struct address_list *al, int index)
{
#if 0
/* Warning: INDEX is unused, so this assumes that the address list
is traversed in order. In the next release, either enable this
assert, or use INDEX. */
/* We assume that the address list is traversed in order, so that a
"faulty" attempt is always preceded with all-faulty addresses,
and this is how Wget uses it. */
assert (index == al->faulty);
#endif
++al->faulty;
if (al->faulty >= al->count)