From: Josef 'Jeff' Sipek Date: Thu, 7 Sep 2017 11:28:27 +0000 (+0300) Subject: lib-storage: convert missed raw storage casts to container_of X-Git-Tag: 2.3.0.rc1~1001 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=13b2d87842be8864e0e29baa18526b9d5a107b23;p=thirdparty%2Fdovecot%2Fcore.git lib-storage: convert missed raw storage casts to container_of --- diff --git a/src/lib-storage/index/raw/raw-storage.c b/src/lib-storage/index/raw/raw-storage.c index 8c46cc5020..d1f3147007 100644 --- a/src/lib-storage/index/raw/raw-storage.c +++ b/src/lib-storage/index/raw/raw-storage.c @@ -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;