X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fspider.c;h=ae2f392c2252abf0fefe3e9f7b7134240b7b5d8d;hp=08fefc9f353cb698a3321871dfe10f3a28322f40;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=caae3b70f46bd519857b595f7f06ea0179551336 diff --git a/src/spider.c b/src/spider.c index 08fefc9f..ae2f392c 100644 --- a/src/spider.c +++ b/src/spider.c @@ -1,5 +1,6 @@ /* Keep track of visited URLs in spider mode. - Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -68,26 +69,26 @@ print_broken_links (void) { hash_table_iterator iter; int num_elems; - - if (!nonexisting_urls_set) + + if (!nonexisting_urls_set) { logprintf (LOG_NOTQUIET, _("Found no broken links.\n\n")); return; } - + num_elems = hash_table_count (nonexisting_urls_set); assert (num_elems > 0); logprintf (LOG_NOTQUIET, ngettext("Found %d broken link.\n\n", "Found %d broken links.\n\n", num_elems), num_elems); - + for (hash_table_iterate (nonexisting_urls_set, &iter); hash_table_iter_next (&iter); ) { - struct url_list *list; + /* Struct url_list *list; */ const char *url = (const char *) iter.key; - + logprintf (LOG_NOTQUIET, _("%s\n"), url); } logputs (LOG_NOTQUIET, "\n");