]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: Replace DBOX_GUID_BIN_LEN with GUID_128_SIZE
authorMartti Rannanjärvi <martti.rannanjarvi@dovecot.fi>
Tue, 24 Oct 2017 07:27:23 +0000 (10:27 +0300)
committerAki Tuomi <aki.tuomi@dovecot.fi>
Fri, 11 May 2018 11:02:50 +0000 (14:02 +0300)
DBOX_GUID_BIN_LEN define was removed in 0c909e, replace the use with
GUID_128_SIZE.

src/lib-storage/mail.c

index 3df6725959e0ecbd1b6b7bf461c8139f73b2c340..a3e7dc1fca52bc96f55fee444f160213fd494678 100644 (file)
@@ -468,7 +468,7 @@ void mail_generate_guid_128_hash(const char *guid, guid_128_t guid_128_r)
                buffer_create_from_data(&buf, guid_128_r, GUID_128_SIZE);
                buffer_set_used_size(&buf, 0);
                sha1_get_digest(guid, strlen(guid), sha1_sum);
-#if SHA1_RESULTLEN < DBOX_GUID_BIN_LEN
+#if SHA1_RESULTLEN < GUID_128_SIZE
 #  error not possible
 #endif
                buffer_append(&buf,