diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 14:37:22 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2015-05-26 14:37:22 +0100 |
commit | d9deec6aa8bdd91e72d099081775196a0933840c (patch) | |
tree | 8d0018c88cf2a030db3ef8625a29b434a9ae568a /src | |
parent | f1e2f1acd45ffc6ae8f79bbba23d4734e588898f (diff) | |
download | rspamd-d9deec6aa8bdd91e72d099081775196a0933840c.tar.gz rspamd-d9deec6aa8bdd91e72d099081775196a0933840c.zip |
Update copyright.
Diffstat (limited to 'src')
-rw-r--r-- | src/libserver/symbols_cache.c | 6 | ||||
-rw-r--r-- | src/libserver/symbols_cache.h | 25 |
2 files changed, 25 insertions, 6 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c index fec045e19..cf40bf614 100644 --- a/src/libserver/symbols_cache.c +++ b/src/libserver/symbols_cache.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2009-2012, Vsevolod Stakhov + * Copyright (c) 2009-2015, Vsevolod Stakhov * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -29,10 +29,6 @@ #include "symbols_cache.h" #include "cfg_file.h" -#define WEIGHT_MULT 4.0 -#define FREQUENCY_MULT 10.0 -#define TIME_MULT -1.0 - /* After which number of messages try to resort cache */ #define MAX_USES 100 /* diff --git a/src/libserver/symbols_cache.h b/src/libserver/symbols_cache.h index 3baf749ab..2d194ab48 100644 --- a/src/libserver/symbols_cache.h +++ b/src/libserver/symbols_cache.h @@ -1,8 +1,31 @@ +/* + * Copyright (c) 2009-2015, Vsevolod Stakhov + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions are met: + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in the + * documentation and/or other materials provided with the distribution. + * + * THIS SOFTWARE IS PROVIDED BY AUTHOR ''AS IS'' AND ANY + * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED + * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE + * DISCLAIMED. IN NO EVENT SHALL AUTHOR BE LIABLE FOR ANY + * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES + * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; + * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND + * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + #ifndef RSPAMD_SYMBOLS_CACHE_H #define RSPAMD_SYMBOLS_CACHE_H #include "config.h" -#include "radix.h" #define MAX_SYMBOL 128 |