Mercurial > dnsbl
diff src/scanner.h @ 214:82886d4dd71f stable-6-0-19
Fixes to compile on Fedora 9 and for const correctness.
author | Carl Byington <carl@five-ten-sg.com> |
---|---|
date | Tue, 10 Jun 2008 08:58:42 -0700 |
parents | c7fc218686f5 |
children | c0d2e99c0a1d |
line wrap: on
line diff
--- a/src/scanner.h Wed Apr 30 13:11:32 2008 -0700 +++ b/src/scanner.h Tue Jun 10 08:58:42 2008 -0700 @@ -21,8 +21,8 @@ string_set *tlds; // valid tlds string_set *cctlds; // valid cctlds string_set hosts; - int bad_html_tags; - int binary_tags; + size_t bad_html_tags; + size_t binary_tags; public: recorder(mlfiPriv *priv_, string_set &html_tags_, string_set &tlds_, string_set &cctlds_); @@ -36,8 +36,8 @@ string_set *get_cctlds() { return cctlds; }; string_set *get_tlds() { return tlds; }; string_set &get_hosts() { return hosts; }; - bool excessive_bad_tags(int limit) { return (limit > 0) && (bad_html_tags > limit) && (bad_html_tags > 3*binary_tags); }; - bool excessive_hosts(int limit) { return (limit > 0) && (hosts.size() > limit); }; + bool excessive_bad_tags(size_t limit){ return (limit > 0) && (bad_html_tags > limit) && (bad_html_tags > 3*binary_tags); }; + bool excessive_hosts(size_t limit) { return (limit > 0) && (hosts.size() > limit); }; };