From e93bb4fa28bfb58622db8ca0b084f52fd52eb956 Mon Sep 17 00:00:00 2001 From: illusionoflife Date: Sun, 20 May 2012 21:02:25 +0200 Subject: [PATCH] Remove unused arguments. --- src/ChangeLog | 7 +++++++ src/convert.c | 4 ++-- src/convert.h | 4 ++-- src/retr.c | 4 ++-- 4 files changed, 13 insertions(+), 6 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index fe0a7afc..f38047cb 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,10 @@ +2012-05-19 illusionoflife (tiny change) + + * convert.c (register_html,register_css): Fixed functions signature to + not accept unused argument + * retr.c (retrieve_url): Changed register_{css,html} usage according + new signature. + 2012-05-16 Giuseppe Scrivano * warc.h: Cut length lines to 80 columns. diff --git a/src/convert.c b/src/convert.c index 6cf6f272..e1c58e9a 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 1f034e57..cdd0a482 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 5f33c7a7..8bc54425 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) -- 2.39.2