From c266d0eb0a3e685c6d1190d0aab242e0e0ce6eee Mon Sep 17 00:00:00 2001 From: Fabian Keil Date: Tue, 14 Sep 2010 07:14:56 +0000 Subject: [PATCH] Make get_filter_function() static, now that it's no longer needed in jcc.c. --- filters.c | 6 ++++-- filters.h | 6 +----- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/filters.c b/filters.c index 7c5632a6..d8f77a0e 100644 --- a/filters.c +++ b/filters.c @@ -1,4 +1,4 @@ -const char filters_rcs[] = "$Id: filters.c,v 1.130 2010/05/24 11:38:22 fabiankeil Exp $"; +const char filters_rcs[] = "$Id: filters.c,v 1.131 2010/09/14 07:13:10 fabiankeil Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.c,v $ @@ -98,6 +98,8 @@ const char filters_h_rcs[] = FILTERS_H_VERSION; */ #define ijb_isdigit(__X) isdigit((int)(unsigned char)(__X)) +typedef char *(*filter_function_ptr)(); +static filter_function_ptr get_filter_function(struct client_state *csp); static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size); static jb_err prepare_for_filtering(struct client_state *csp); @@ -1738,7 +1740,7 @@ static char *gif_deanimate_response(struct client_state *csp) * NULL if no content filter is active * *********************************************************************/ -filter_function_ptr get_filter_function(struct client_state *csp) +static filter_function_ptr get_filter_function(struct client_state *csp) { filter_function_ptr filter_function = NULL; diff --git a/filters.h b/filters.h index 2faa2272..0ec16a97 100644 --- a/filters.h +++ b/filters.h @@ -1,6 +1,6 @@ #ifndef FILTERS_H_INCLUDED #define FILTERS_H_INCLUDED -#define FILTERS_H_VERSION "$Id: filters.h,v 1.38 2010/05/01 18:20:50 fabiankeil Exp $" +#define FILTERS_H_VERSION "$Id: filters.h,v 1.39 2010/09/14 07:13:10 fabiankeil Exp $" /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/filters.h,v $ @@ -101,11 +101,7 @@ extern const struct forward_spec *forward_url(struct client_state *csp, /* * Content modification */ - -typedef char *(*filter_function_ptr)(); extern char *execute_content_filters(struct client_state *csp); - -extern filter_function_ptr get_filter_function(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); -- 2.39.2