dovecot-2.0: quota: Fixed doveadm plugin to compile again with n...

dovecot at dovecot.org dovecot at dovecot.org
Thu May 13 14:01:32 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/49252a5fcdde
changeset: 11305:49252a5fcdde
user:      Timo Sirainen <tss at iki.fi>
date:      Thu May 13 13:01:26 2010 +0200
description:
quota: Fixed doveadm plugin to compile again with new API.

diffstat:

 src/plugins/quota/Makefile.am     |   1 +
 src/plugins/quota/doveadm-quota.c |  12 ++++++------
 2 files changed, 7 insertions(+), 6 deletions(-)

diffs (51 lines):

diff -r 9f1fb4978a4a -r 49252a5fcdde src/plugins/quota/Makefile.am
--- a/src/plugins/quota/Makefile.am	Thu May 13 13:01:14 2010 +0200
+++ b/src/plugins/quota/Makefile.am	Thu May 13 13:01:26 2010 +0200
@@ -10,6 +10,7 @@
 	-I$(top_srcdir)/src/lib-storage/index/maildir \
 	-I$(top_srcdir)/src/doveadm
 
+lib10_doveadm_quota_plugin_la_LDFLAGS = -module -avoid-version
 lib10_quota_plugin_la_LDFLAGS = -module -avoid-version
 
 module_LTLIBRARIES = \
diff -r 9f1fb4978a4a -r 49252a5fcdde src/plugins/quota/doveadm-quota.c
--- a/src/plugins/quota/doveadm-quota.c	Thu May 13 13:01:14 2010 +0200
+++ b/src/plugins/quota/doveadm-quota.c	Thu May 13 13:01:26 2010 +0200
@@ -50,11 +50,11 @@
 }
 
 static struct doveadm_mail_cmd_context *
-cmd_quota_get(const char *const args[] ATTR_UNUSED)
+cmd_quota_get_alloc(void)
 {
 	struct doveadm_mail_cmd_context *ctx;
 
-	ctx = doveadm_mail_cmd_init(struct doveadm_mail_cmd_context);
+	ctx = doveadm_mail_cmd_alloc(struct doveadm_mail_cmd_context);
 	ctx->run = cmd_quota_get_run;
 	return ctx;
 }
@@ -76,18 +76,18 @@
 }
 
 static struct doveadm_mail_cmd_context *
-cmd_quota_recalc(const char *const args[] ATTR_UNUSED)
+cmd_quota_recalc_alloc(void)
 {
 	struct doveadm_mail_cmd_context *ctx;
 
-	ctx = doveadm_mail_cmd_init(struct doveadm_mail_cmd_context);
+	ctx = doveadm_mail_cmd_alloc(struct doveadm_mail_cmd_context);
 	ctx->run = cmd_quota_recalc_run;
 	return ctx;
 }
 
 static struct doveadm_mail_cmd quota_commands[] = {
-	{ cmd_quota_get, "quota get", NULL },
-	{ cmd_quota_recalc, "quota recalc", NULL }
+	{ cmd_quota_get_alloc, "quota get", NULL },
+	{ cmd_quota_recalc_alloc, "quota recalc", NULL }
 };
 
 void doveadm_quota_plugin_init(struct module *module ATTR_UNUSED)


More information about the dovecot-cvs mailing list