]> 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>
Mon, 30 Oct 2017 08:18:50 +0000 (10:18 +0200)
DBOX_GUID_BIN_LEN define was removed in 0c909e, replace the use with
GUID_128_SIZE.

src/lib-storage/mail.c

index 4374cd945c367b376e0cc8e95fe46ebad8fb4def..62d6b9a89f235f4607611357d4b7b9bd5b182eed 100644 (file)
@@ -441,7 +441,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,