From: Fabian Keil <fk@fabiankeil.de>
Date: Tue, 25 Aug 2020 15:15:22 +0000 (+0200)
Subject: Declare get_last_url() static
X-Git-Tag: v_3_0_29~187
X-Git-Url: http://www.privoxy.org/gitweb/%22https:/faq/@default-cgi@/user-manual/static/@default-cgi@toggle?a=commitdiff_plain;h=23f625f4848f55342283b6ebc471735c14360bb1;p=privoxy.git

Declare get_last_url() static

Sponsored by: Robert Klemme
---

diff --git a/filters.c b/filters.c
index 0c338907..c7e71f85 100644
--- a/filters.c
+++ b/filters.c
@@ -1050,7 +1050,7 @@ char *rewrite_url(char *old_url, const char *pcrs_command)
  *                the last URL found.
  *
  *********************************************************************/
-char *get_last_url(char *subject, const char *redirect_mode)
+static char *get_last_url(char *subject, const char *redirect_mode)
 {
    char *new_url = NULL;
    char *tmp;
diff --git a/filters.h b/filters.h
index b8004fec..6b603fc1 100644
--- a/filters.h
+++ b/filters.h
@@ -86,7 +86,6 @@ extern const struct forward_spec *forward_url(struct client_state *csp,
 extern char *execute_content_filters(struct client_state *csp);
 extern char *execute_single_pcrs_command(char *subject, const char *pcrs_command, int *hits);
 extern char *rewrite_url(char *old_url, const char *pcrs_command);
-extern char *get_last_url(char *subject, const char *redirect_mode);
 
 extern pcrs_job *compile_dynamic_pcrs_job_list(const struct client_state *csp, const struct re_filterfile_spec *b);