diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-12-02 17:11:01 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2016-12-02 17:11:01 +0200 |
commit | 15f6dbf66eed6bed5c084d97077e7cc5f8e192a7 (patch) | |
tree | 1debcb9960f990af390cf3930c539736d0179960 /examples | |
parent | ed04bc837e353e61e4c43f6bdbd9a67859c61f61 (diff) | |
download | mailutils-15f6dbf66eed6bed5c084d97077e7cc5f8e192a7.tar.gz mailutils-15f6dbf66eed6bed5c084d97077e7cc5f8e192a7.tar.bz2 |
sieve: change string allocation and argument passing convention
Strings are allocated in a per-machine string space. String and
argument lists form contiguous arrays of structures. Regular ex-
pressions are compiled when they are needed. Compiled expressions
are cached for eventual reuse.
Diffstat (limited to 'examples')
-rw-r--r-- | examples/numaddr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/numaddr.c b/examples/numaddr.c index 7981e0bc2..584d2b9f7 100644 --- a/examples/numaddr.c +++ b/examples/numaddr.c @@ -95,7 +95,7 @@ numaddr_test (mu_sieve_machine_t mach) vc.count = 0; /* Count the addresses */ - rc = mu_sieve_vlist_do (h, _count_items, &vc); + rc = mu_sieve_vlist_do (mach, h, _count_items, &vc); /* Here rc >= 1 iff the counted number of addresses is greater or equal to vc.limit. If `:under' tag was given we reverse the return value */ |