projects
/
privoxy.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
prepare_csp_for_next_request(): Fix format specifiers in a log message
[privoxy.git]
/
loaders.c
diff --git
a/loaders.c
b/loaders.c
index
20f0888
..
654a1b9
100644
(file)
--- a/
loaders.c
+++ b/
loaders.c
@@
-46,7
+46,7
@@
#include <ctype.h>
#include <assert.h>
#include <ctype.h>
#include <assert.h>
-#if !defined(_WIN32)
&& !defined(__OS2__)
+#if !defined(_WIN32)
#include <unistd.h>
#endif
#include <unistd.h>
#endif
@@
-1226,7
+1226,9
@@
int load_one_re_filterfile(struct client_state *csp, int fileid)
bl = new_bl;
log_error(LOG_LEVEL_RE_FILTER, "Reading in filter \"%s\" (\"%s\")", bl->name, bl->description);
bl = new_bl;
log_error(LOG_LEVEL_RE_FILTER, "Reading in filter \"%s\" (\"%s\")", bl->name, bl->description);
-
+#ifdef FEATURE_EXTENDED_STATISTICS
+ register_filter_for_statistics(bl->name);
+#endif
freez(buf);
continue;
}
freez(buf);
continue;
}
@@
-1238,7
+1240,7
@@
int load_one_re_filterfile(struct client_state *csp, int fileid)
/* Save the code as "pattern", but do not compile anything. */
if (bl->patterns->first != NULL)
{
/* Save the code as "pattern", but do not compile anything. */
if (bl->patterns->first != NULL)
{
- log_error(LOG_LEVEL_FATAL, "External filter '%s' contains several jobs
s
. "
+ log_error(LOG_LEVEL_FATAL, "External filter '%s' contains several jobs. "
"Did you forget to escape a line break?",
bl->name);
}
"Did you forget to escape a line break?",
bl->name);
}