>From d73c4aa6d34e63167328c6a61ea4849caaad1fb4 Mon Sep 17 00:00:00 2001 From: illusionoflife Date: Fri, 18 May 2012 22:17:16 +0400 Subject: [PATCH] Fixed register_{html,css} --- src/ChangeLog | 3 +++ src/convert.c | 4 ++-- src/convert.h | 4 ++-- src/retr.c | 4 ++-- 4 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 68df65b..0440de5 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2012-05-19 illusionoflife (tiny change) + * convert.c (register_html,register_css): Fixed functions signature to not accept unused argument + * retr.c (retrivie_url): Changed register_{css,html} usage according new signature. 2012-05-14 Tim Ruehsen * gnutls.c (wgnutls_read_timeout): removed warnings, moved fcntl stuff diff --git a/src/convert.c b/src/convert.c index 6cf6f27..e1c58e9 100644 --- a/src/convert.c +++ b/src/convert.c @@ -870,7 +870,7 @@ register_delete_file (const char *file) /* Register that FILE is an HTML file that has been downloaded. */ void -register_html (const char *url, const char *file) +register_html (const char *file) { if (!downloaded_html_set) downloaded_html_set = make_string_hash_table (0); @@ -880,7 +880,7 @@ register_html (const char *url, const char *file) /* Register that FILE is a CSS file that has been downloaded. */ void -register_css (const char *url, const char *file) +register_css (const char *file) { if (!downloaded_css_set) downloaded_css_set = make_string_hash_table (0); diff --git a/src/convert.h b/src/convert.h index 1f034e5..cdd0a48 100644 --- a/src/convert.h +++ b/src/convert.h @@ -101,8 +101,8 @@ downloaded_file_t downloaded_file (downloaded_file_t, const char *); void register_download (const char *, const char *); void register_redirection (const char *, const char *); -void register_html (const char *, const char *); -void register_css (const char *, const char *); +void register_html (const char *); +void register_css (const char *); void register_delete_file (const char *); void convert_all_links (void); void convert_cleanup (void); diff --git a/src/retr.c b/src/retr.c index 5f33c7a..8bc5442 100644 --- a/src/retr.c +++ b/src/retr.c @@ -932,10 +932,10 @@ retrieve_url (struct url * orig_parsed, const char *origurl, char **file, register_redirection (origurl, u->url); if (*dt & TEXTHTML) - register_html (u->url, local_file); + register_html (local_file); if (*dt & TEXTCSS) - register_css (u->url, local_file); + register_css (local_file); } if (file) -- 1.7.10.2