aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRon <ron@debian.org>2009-07-22 23:11:27 +0930
committerJohannes Berg <johannes@sipsolutions.net>2009-07-22 16:51:41 +0200
commit91d5b8ddc7ca094f0821ecd4aaf85570d33a6f24 (patch)
treec1caebb087d6f07f073975bd53f63f985358d877
parent0aba921c8430517b96fb9830b1615c34d6c5fdd7 (diff)
downloaddovecot-antispam-91d5b8ddc7ca094f0821ecd4aaf85570d33a6f24.tar.gz
dovecot-antispam-91d5b8ddc7ca094f0821ecd4aaf85570d33a6f24.tar.xz
dovecot-antispam-91d5b8ddc7ca094f0821ecd4aaf85570d33a6f24.zip
Const correctness fixes (in line with changes in the dovecot 1.2 signatures)
-rw-r--r--antispam-plugin.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/antispam-plugin.c b/antispam-plugin.c
index cf14d19..455668d 100644
--- a/antispam-plugin.c
+++ b/antispam-plugin.c
@@ -96,8 +96,8 @@ void lowercase_string(const char *in, char *out)
}
}
-static bool mailbox_patternmatch(struct mailbox *box,
- struct mail_storage *storage,
+static bool mailbox_patternmatch(const struct mailbox *box,
+ const struct mail_storage *storage,
const char *name,
bool lowercase)
{
@@ -134,21 +134,21 @@ static bool mailbox_patternmatch(struct mailbox *box,
return rc;
}
-static bool mailbox_patternmatch_case(struct mailbox *box,
- struct mail_storage *storage,
+static bool mailbox_patternmatch_case(const struct mailbox *box,
+ const struct mail_storage *storage,
const char *name)
{
return mailbox_patternmatch(box, storage, name, FALSE);
}
-static bool mailbox_patternmatch_icase(struct mailbox *box,
- struct mail_storage *storage,
+static bool mailbox_patternmatch_icase(const struct mailbox *box,
+ const struct mail_storage *storage,
const char *name)
{
return mailbox_patternmatch(box, storage, name, TRUE);
}
-typedef bool (*match_fn_t)(struct mailbox *, struct mail_storage *,
+typedef bool (*match_fn_t)(const struct mailbox *, const struct mail_storage *,
const char *);
/* match information */