summaryrefslogtreecommitdiff
path: root/libsieve/register.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2002-11-15 14:40:34 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2002-11-15 14:40:34 +0000
commit7f54dd9c5986380de70bd9595465f7676115e3ee (patch)
tree893370dca896610a3a83ecf246d613ac16e0c1da /libsieve/register.c
parenta3e15ed693508130d19ff79143163a6545a799b6 (diff)
downloadmailutils-7f54dd9c5986380de70bd9595465f7676115e3ee.tar.gz
mailutils-7f54dd9c5986380de70bd9595465f7676115e3ee.tar.bz2
(sieve_register_test)
(sieve_register_action): Changed type of fourth argument (tags).
Diffstat (limited to 'libsieve/register.c')
-rw-r--r--libsieve/register.c24
1 files changed, 3 insertions, 21 deletions
diff --git a/libsieve/register.c b/libsieve/register.c
index 67b25bfd4..64b9a4735 100644
--- a/libsieve/register.c
+++ b/libsieve/register.c
@@ -65,9 +65,8 @@ static int
sieve_register (list_t *list,
const char *name, sieve_handler_t handler,
sieve_data_type *arg_types,
- sieve_tag_def_t *tags, int required)
+ sieve_tag_group_t *tags, int required)
{
- int n;
sieve_register_t *reg = malloc (sizeof (*reg));
if (!reg)
@@ -75,24 +74,7 @@ sieve_register (list_t *list,
reg->name = name;
reg->handler = handler;
- if (arg_types)
- {
- for (n = 0; arg_types[n] != SVT_VOID; n++)
- ;
- }
- else
- n = 0;
- reg->num_req_args = n;
reg->req_args = arg_types;
-
- if (tags)
- {
- for (n = 0; tags[n].name != NULL; n++)
- ;
- }
- else
- n = 0;
- reg->num_tags = n;
reg->tags = tags;
reg->required = required;
@@ -113,7 +95,7 @@ sieve_register (list_t *list,
int
sieve_register_test (const char *name, sieve_handler_t handler,
sieve_data_type *arg_types,
- sieve_tag_def_t *tags, int required)
+ sieve_tag_group_t *tags, int required)
{
return sieve_register (&test_list, name, handler, arg_types, tags, required);
}
@@ -121,7 +103,7 @@ sieve_register_test (const char *name, sieve_handler_t handler,
int
sieve_register_action (const char *name, sieve_handler_t handler,
sieve_data_type *arg_types,
- sieve_tag_def_t *tags, int required)
+ sieve_tag_group_t *tags, int required)
{
return sieve_register (&action_list, name, handler, arg_types, tags, required);
}

Return to:

Send suggestions and report system problems to the System administrator.