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> 2001-12-10 Hrvoje Niksic <hniksic@arsdigita.com>
* utils.c (long_to_string): Return a pointer after where the * 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 void
address_list_set_faulty (struct address_list *al, int index) address_list_set_faulty (struct address_list *al, int index)
{ {
#if 0 /* We assume that the address list is traversed in order, so that a
/* Warning: INDEX is unused, so this assumes that the address list "faulty" attempt is always preceded with all-faulty addresses,
is traversed in order. In the next release, either enable this and this is how Wget uses it. */
assert, or use INDEX. */
assert (index == al->faulty); assert (index == al->faulty);
#endif
++al->faulty; ++al->faulty;
if (al->faulty >= al->count) if (al->faulty >= al->count)