]> sjero.net Git - wget/commitdiff
[svn] Restore sanity check in address_list_set_faulty.
authorhniksic <devnull@localhost>
Mon, 10 Dec 2001 02:33:08 +0000 (18:33 -0800)
committerhniksic <devnull@localhost>
Mon, 10 Dec 2001 02:33:08 +0000 (18:33 -0800)
src/ChangeLog
src/host.c

index 74c44809e20b7bc5d193a5856e0f91184954b2fe..5edfcb7be59b5b68efcd9d79d45abdcd64bf6bf2 100644 (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
index e27383d6f44867ccf8c268fdd2456805579703c5..fb99773301677b010c7f2eae6108da6ee6e0043e 100644 (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)