From fb9368e889bcce1a66829010a58735b78928b698 Mon Sep 17 00:00:00 2001 From: hniksic Date: Sun, 9 Dec 2001 18:33:08 -0800 Subject: [PATCH] [svn] Restore sanity check in address_list_set_faulty. --- src/ChangeLog | 4 ++++ src/host.c | 8 +++----- 2 files changed, 7 insertions(+), 5 deletions(-) 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 + + * host.c (address_list_set_faulty): Uncomment a sanity check. + 2001-12-10 Hrvoje Niksic * 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) -- 2.39.2