]> sjero.net Git - wget/commitdiff
Remove unused arguments.
authorillusionoflife <illusion.of.life92@gmail.com>
Sun, 20 May 2012 19:02:25 +0000 (21:02 +0200)
committerGiuseppe Scrivano <gscrivano@gnu.org>
Sun, 20 May 2012 19:02:25 +0000 (21:02 +0200)
src/ChangeLog
src/convert.c
src/convert.h
src/retr.c

index fe0a7afcb7f0461fbc42937ac9fe8a361cc78490..f38047cb37c9e4773cd85164245e1b392b7c9bad 100644 (file)
@@ -1,3 +1,10 @@
+2012-05-19  illusionoflife  <illusion.of.life92@gmail.com> (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  <gscrivano@gnu.org>
 
        * warc.h: Cut length lines to 80 columns.
index 6cf6f2724d7a1ed89345cf2ee17422d093cb0b22..e1c58e9ae0f6c7a79ebf60c5d5ffcab0633ac79b 100644 (file)
@@ -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);
index 1f034e57a131cbb05699bd7a13f21a8193379f76..cdd0a4826c1aaa3d15060cbd4e7e4ece559902f6 100644 (file)
@@ -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);
index 5f33c7a77355ce30a02424990902021d515331a1..8bc544257044d5892138a8fac836b5d35a56f1d7 100644 (file)
@@ -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)