From 1c231299bdb53d8229d9c9fc463cdc2407e9435c Mon Sep 17 00:00:00 2001 From: Micah Cowan Date: Tue, 22 Apr 2008 01:47:39 -0700 Subject: [PATCH] Fix merge glitches, get it to build. --- .hgignore | 1 + src/Makefile.am | 2 +- src/convert.c | 4 ++-- src/{css.lex => css.l} | 0 src/http.c | 1 + src/recur.c | 1 + ylwrap | 1 + 7 files changed, 7 insertions(+), 3 deletions(-) rename src/{css.lex => css.l} (100%) create mode 120000 ylwrap diff --git a/.hgignore b/.hgignore index 666c5c38..58932bb0 100644 --- a/.hgignore +++ b/.hgignore @@ -28,6 +28,7 @@ src/.deps src/stamp-h1 src/config.h src/config.h.in +src/css.c src/wget src/cscope.out src/tags diff --git a/src/Makefile.am b/src/Makefile.am index 2403f671..a29983a9 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -36,7 +36,7 @@ LIBS = @LIBS@ @LIBSSL@ @LIBGNUTLS@ @LIBINTL@ bin_PROGRAMS = wget wget_SOURCES = cmpt.c connect.c convert.c cookies.c \ - css.lex css-url.c \ + css.l css-url.c \ ftp.c ftp-basic.c \ ftp-ls.c hash.c host.c html-parse.c html-url.c http.c \ init.c log.c main.c netrc.c progress.c ptimer.c recur.c \ diff --git a/src/convert.c b/src/convert.c index 4f90bb3b..00319ddc 100644 --- a/src/convert.c +++ b/src/convert.c @@ -73,7 +73,7 @@ convert_links_in_hashtable (struct hash_table *downloaded_set, if (downloaded_set) cnt = hash_table_count (downloaded_set); if (cnt == 0) - goto cleanup; + return; file_array = alloca_array (char *, cnt); string_set_to_array (downloaded_set, file_array); @@ -184,7 +184,7 @@ convert_all_links (void) secs = ptimer_measure (timer); logprintf (LOG_VERBOSE, _("Converted %d files in %s seconds.\n"), file_count, print_decimal (secs)); -cleanup: + ptimer_destroy (timer); } diff --git a/src/css.lex b/src/css.l similarity index 100% rename from src/css.lex rename to src/css.l diff --git a/src/http.c b/src/http.c index fb8184f1..4fcc9655 100644 --- a/src/http.c +++ b/src/http.c @@ -69,6 +69,7 @@ as that of the covered work. */ extern char *version_string; /* Forward decls. */ +struct http_stat; static char *create_authorization_line (const char *, const char *, const char *, const char *, const char *, bool *); diff --git a/src/recur.c b/src/recur.c index daf8a374..7f864697 100644 --- a/src/recur.c +++ b/src/recur.c @@ -55,6 +55,7 @@ as that of the covered work. */ /* Functions for maintaining the URL queue. */ struct queue_element { + const char *url; /* the URL to download */ const char *referer; /* the referring document */ int depth; /* the depth */ bool html_allowed; /* whether the document is allowed to diff --git a/ylwrap b/ylwrap new file mode 120000 index 00000000..fd53578c --- /dev/null +++ b/ylwrap @@ -0,0 +1 @@ +/usr/share/automake-1.10/ylwrap \ No newline at end of file -- 2.39.2