+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
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)