Declare get_last_url() static
authorFabian Keil <fk@fabiankeil.de>
Tue, 25 Aug 2020 15:15:22 +0000 (17:15 +0200)
committerFabian Keil <fk@fabiankeil.de>
Tue, 1 Sep 2020 10:22:42 +0000 (12:22 +0200)
Sponsored by: Robert Klemme

filters.c
filters.h

index 0c33890..c7e71f8 100644 (file)
--- a/filters.c
+++ b/filters.c
@@ -1050,7 +1050,7 @@ char *rewrite_url(char *old_url, const char *pcrs_command)
  *                the last URL found.
  *
  *********************************************************************/
  *                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;
 {
    char *new_url = NULL;
    char *tmp;
index b8004fe..6b603fc 100644 (file)
--- 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 *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);
 
 
 extern pcrs_job *compile_dynamic_pcrs_job_list(const struct client_state *csp, const struct re_filterfile_spec *b);