X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Fspider.c;h=ae2f392c2252abf0fefe3e9f7b7134240b7b5d8d;hp=b12552d37ae4194d1f8803c6bcf11aa959650c50;hb=38a7829dcb4eb5dba28dbf0f05c6a80fea9217f8;hpb=86395b297b58c8c9b43d7ca8c42b831d4926dac6 diff --git a/src/spider.c b/src/spider.c index b12552d3..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 Free Software Foundation, Inc. + Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Free Software + Foundation, Inc. This file is part of GNU Wget. @@ -27,13 +28,12 @@ Corresponding Source for a non-source form of such a combination shall include the source code for the parts of OpenSSL used as well as that of the covered work. */ -#include +#include "wget.h" #include #include #include -#include "wget.h" #include "spider.h" #include "url.h" #include "utils.h" @@ -69,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");