From f83b6345610e5a7f20ed7a82e9545de217ee7ea1 Mon Sep 17 00:00:00 2001 From: Stephan Bosch <stephan@rename-it.nl> Date: Sun, 26 Jul 2009 02:37:46 +0200 Subject: [PATCH] Notify (deprecated): fixed compiler warnings. --- src/lib-sieve/plugins/Makefile.am | 3 ++- src/lib-sieve/plugins/notify/cmd-denotify.c | 13 +++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/lib-sieve/plugins/Makefile.am b/src/lib-sieve/plugins/Makefile.am index 92389755b..c098e06c7 100644 --- a/src/lib-sieve/plugins/Makefile.am +++ b/src/lib-sieve/plugins/Makefile.am @@ -11,5 +11,6 @@ SUBDIRS = \ variables \ enotify \ notify \ - environment + environment \ + mailbox diff --git a/src/lib-sieve/plugins/notify/cmd-denotify.c b/src/lib-sieve/plugins/notify/cmd-denotify.c index dbc72b22e..12e3837d8 100644 --- a/src/lib-sieve/plugins/notify/cmd-denotify.c +++ b/src/lib-sieve/plugins/notify/cmd-denotify.c @@ -79,15 +79,18 @@ enum cmd_denotify_optional { */ static bool cmd_denotify_operation_dump -(const struct sieve_operation *op ATTR_UNUSED, - const struct sieve_dumptime_env *denv, sieve_size_t *address); + (const struct sieve_operation *op ATTR_UNUSED, + const struct sieve_dumptime_env *denv, sieve_size_t *address); +static int cmd_denotify_operation_execute + (const struct sieve_operation *op ATTR_UNUSED, + const struct sieve_runtime_env *renv, sieve_size_t *address); const struct sieve_operation denotify_operation = { "DENOTIFY", ¬ify_extension, EXT_NOTIFY_OPERATION_DENOTIFY, cmd_denotify_operation_dump, - NULL + cmd_denotify_operation_execute }; /* @@ -227,12 +230,10 @@ static bool cmd_denotify_operation_dump * Code execution */ -static int cmd_notify_operation_execute +static int cmd_denotify_operation_execute (const struct sieve_operation *op ATTR_UNUSED, const struct sieve_runtime_env *renv, sieve_size_t *address) { - struct ext_notify_action *act; - pool_t pool; int opt_code = 1; sieve_number_t importance = 1; const struct sieve_match_type *match_type = NULL; -- GitLab