projects
/
privoxy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b0d1839
)
Make get_filter_function() static, now that it's no longer needed in jcc.c.
author
Fabian Keil
<fk@fabiankeil.de>
Tue, 14 Sep 2010 07:14:56 +0000
(07:14 +0000)
committer
Fabian Keil
<fk@fabiankeil.de>
Tue, 14 Sep 2010 07:14:56 +0000
(07:14 +0000)
filters.c
patch
|
blob
|
history
filters.h
patch
|
blob
|
history
diff --git
a/filters.c
b/filters.c
index
7c5632a
..
d8f77a0
100644
(file)
--- a/
filters.c
+++ b/
filters.c
@@
-1,4
+1,4
@@
-const char filters_rcs[] = "$Id: filters.c,v 1.13
0 2010/05/24 11:38:22
fabiankeil Exp $";
+const char filters_rcs[] = "$Id: filters.c,v 1.13
1 2010/09/14 07:13:10
fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.c,v $
/*********************************************************************
*
* 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))
*/
#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);
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
*
*********************************************************************/
* 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;
{
filter_function_ptr filter_function = NULL;
diff --git
a/filters.h
b/filters.h
index
2faa227
..
0ec16a9
100644
(file)
--- a/
filters.h
+++ b/
filters.h
@@
-1,6
+1,6
@@
#ifndef FILTERS_H_INCLUDED
#define FILTERS_H_INCLUDED
#ifndef FILTERS_H_INCLUDED
#define FILTERS_H_INCLUDED
-#define FILTERS_H_VERSION "$Id: filters.h,v 1.3
8 2010/05/01 18:20:5
0 fabiankeil Exp $"
+#define FILTERS_H_VERSION "$Id: filters.h,v 1.3
9 2010/09/14 07:13:1
0 fabiankeil Exp $"
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/filters.h,v $
/*********************************************************************
*
* 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
*/
/*
* Content modification
*/
-
-typedef char *(*filter_function_ptr)();
extern char *execute_content_filters(struct client_state *csp);
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);
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);