summaryrefslogtreecommitdiff
path: root/conf/cf-lex.l
diff options
context:
space:
mode:
authorMaria Matejka <mq@ucw.cz>2019-02-26 16:44:24 +0100
committerMaria Matejka <mq@ucw.cz>2019-02-26 16:44:24 +0100
commitf249d0b84c840242a084966999a1d228c603b431 (patch)
tree7e366d772a68306b20c8c71e34febc747d9a8fe5 /conf/cf-lex.l
parent0d12aa48363802e751d3b9a4afd6eb090592d7a3 (diff)
Filters: comparison of functions and filters caching
Diffstat (limited to 'conf/cf-lex.l')
-rw-r--r--conf/cf-lex.l4
1 files changed, 3 insertions, 1 deletions
diff --git a/conf/cf-lex.l b/conf/cf-lex.l
index 593df9d6..4f69993e 100644
--- a/conf/cf-lex.l
+++ b/conf/cf-lex.l
@@ -561,6 +561,8 @@ cf_new_symbol(const byte *c)
HASH_INSERT2(new_config->sym_hash, SYM, new_config->pool, s);
+ add_tail(&(new_config->symbols), &(s->n));
+
return s;
}
@@ -576,7 +578,7 @@ cf_new_symbol(const byte *c)
* signify no match.
*/
struct symbol *
-cf_find_symbol(struct config *cfg, const byte *c)
+cf_find_symbol(const struct config *cfg, const byte *c)
{
struct symbol *s;