From 06fc1edb548aa7ff6dd9eea59578e86463032339 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Tue, 28 Aug 2012 21:38:12 +0200 Subject: [PATCH] Remove static modifier for functions used in other modules. --- src/ChangeLog | 6 ++++++ src/html-url.c | 2 +- src/init.c | 2 ++ src/spider.c | 2 +- 4 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 7830e944..862ae30f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-07-07 Giuseppe Scrivano + + * html-url.c (cleanup_html_url): Remove "static" modifier. + * init.c (cleanup_html_url): Likewise. + Reported by: Mike Frysinger . + 2012-08-25 Hrvoje Niksic * warc.c (warc_find_duplicate_cdx_record): Use hash_table_get diff --git a/src/html-url.c b/src/html-url.c index 55563e2d..855393a7 100644 --- a/src/html-url.c +++ b/src/html-url.c @@ -830,7 +830,7 @@ get_urls_file (const char *file) return head; } -static void +void cleanup_html_url (void) { /* Destroy the hash tables. The hash table keys and values are not diff --git a/src/init.c b/src/init.c index 365fb5ba..cafd456c 100644 --- a/src/init.c +++ b/src/init.c @@ -1669,6 +1669,7 @@ decode_string (const char *val, const struct decode_item *items, int itemcount, void cleanup_html_url (void); +void spider_cleanup (void); /* Free the memory allocated by global variables. */ @@ -1703,6 +1704,7 @@ cleanup (void) res_cleanup (); http_cleanup (); cleanup_html_url (); + spider_cleanup (); host_cleanup (); log_cleanup (); diff --git a/src/spider.c b/src/spider.c index dad9a23d..ae2f392c 100644 --- a/src/spider.c +++ b/src/spider.c @@ -45,7 +45,7 @@ static struct hash_table *nonexisting_urls_set; /* Cleanup the data structures associated with this file. */ -static void +void spider_cleanup (void) { if (nonexisting_urls_set) -- 2.39.2