]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
lib-storage: convert missed raw storage casts to container_of
authorJosef 'Jeff' Sipek <jeff.sipek@dovecot.fi>
Thu, 7 Sep 2017 11:28:27 +0000 (14:28 +0300)
committerTimo Sirainen <tss@dovecot.fi>
Mon, 18 Sep 2017 14:40:24 +0000 (17:40 +0300)
src/lib-storage/index/raw/raw-storage.c

index 8c46cc502082d01cac1a925a52a4ba8a3a46d600..d1f3147007675d619477a8f22ee5ad0480e32c0c 100644 (file)
@@ -76,7 +76,7 @@ raw_mailbox_alloc_common(struct mail_user *user, struct istream *input,
                return -1;
 
        i_assert(strcmp(box->storage->name, RAW_STORAGE_NAME) == 0);
-       raw_box = (struct raw_mailbox *)box;
+       raw_box = RAW_MAILBOX(box);
        raw_box->envelope_sender = envelope_sender;
        raw_box->mtime = received_time;
        return 0;