diff --git a/src/ChangeLog b/src/ChangeLog index 74c44809..5edfcb7b 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -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 diff --git a/src/host.c b/src/host.c index e27383d6..fb997733 100644 --- a/src/host.c +++ b/src/host.c @@ -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)