dovecot-2.2: plugins/fts: use common guid_128 helpers

dovecot at dovecot.org dovecot at dovecot.org
Tue Jan 20 23:55:14 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/991a6b7a9385
changeset: 18196:991a6b7a9385
user:      Phil Carmody <phil at dovecot.fi>
date:      Wed Jan 21 01:53:34 2015 +0200
description:
plugins/fts: use common guid_128 helpers
Signed-off-by: Phil Carmody <phil at dovecot.fi>

diffstat:

 src/plugins/fts/fts-expunge-log.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 91b00535e1f9 -r 991a6b7a9385 src/plugins/fts/fts-expunge-log.c
--- a/src/plugins/fts/fts-expunge-log.c	Wed Jan 21 01:52:59 2015 +0200
+++ b/src/plugins/fts/fts-expunge-log.c	Wed Jan 21 01:53:34 2015 +0200
@@ -195,7 +195,7 @@
 	struct fts_expunge_log_mailbox *mailbox;
 
 	mailbox = p_new(ctx->pool, struct fts_expunge_log_mailbox, 1);
-	memcpy(mailbox->guid, mailbox_guid, sizeof(mailbox->guid));
+	guid_128_copy(mailbox->guid, mailbox_guid);
 	p_array_init(&mailbox->uids, ctx->pool, 16);
 
 	guid_p = mailbox->guid;
@@ -211,7 +211,7 @@
 	struct fts_expunge_log_mailbox *mailbox;
 
 	if (ctx->prev_mailbox != NULL &&
-	    memcmp(mailbox_guid, ctx->prev_mailbox->guid, GUID_128_SIZE) == 0)
+	    guid_128_equals(mailbox_guid, ctx->prev_mailbox->guid))
 		mailbox = ctx->prev_mailbox;
 	else {
 		mailbox = hash_table_lookup(ctx->mailboxes, guid_p);


More information about the dovecot-cvs mailing list