Mercurial > dnsbl
comparison src/scanner.cpp @ 42:afcf403709ef
updates for 3.2, try to drop root privileges
author | carl |
---|---|
date | Mon, 05 Jul 2004 13:09:44 -0700 |
parents | d95af8129dfa |
children | 6b79046b18c2 |
comparison
equal
deleted
inserted
replaced
41:d95af8129dfa | 42:afcf403709ef |
---|---|
18 string_set *html_tags; // valid tags | 18 string_set *html_tags; // valid tags |
19 string_set *tlds; // valid tlds | 19 string_set *tlds; // valid tlds |
20 string_set hosts; | 20 string_set hosts; |
21 int bad_html_tags; | 21 int bad_html_tags; |
22 int binary_tags; | 22 int binary_tags; |
23 recorder(string_set *html_tags_, string_set *tlds_); | 23 recorder(mlfiPriv *priv_, string_set *html_tags_, string_set *tlds_); |
24 ~recorder(); | 24 ~recorder(); |
25 void empty(); | 25 void empty(); |
26 void new_url(char *host); | 26 void new_url(char *host); |
27 void new_tag(char *tag); | 27 void new_tag(char *tag); |
28 void binary(); | 28 void binary(); |
929 } | 929 } |
930 | 930 |
931 void fsa::error(char *err) { | 931 void fsa::error(char *err) { |
932 count = 0; | 932 count = 0; |
933 st = init; | 933 st = init; |
934 if (err) my_syslog(err); | 934 if (err) my_syslog(memory->priv, err); |
935 } | 935 } |
936 | 936 |
937 void fsa::pusher() { | 937 void fsa::pusher() { |
938 if (next1) next1->push(pending, count); | 938 if (next1) next1->push(pending, count); |
939 if (next2) next2->push(pending, count); | 939 if (next2) next2->push(pending, count); |