aboutsummaryrefslogblamecommitdiffstats
path: root/testing/dovecot-ceph-plugin/2-fixes.patch
blob: 6d10381d4d0fb2b0652fb6d48078a071cd9e1524 (plain) (tree)




















                                                                                                                             
submitted as: https://github.com/ceph-dovecot/dovecot-ceph-plugin/pull/272

commit 31f755997e648e813a4eb49d86c301d6e5b1121d
Author: None None <none@f1-outsourcing.eu>
Date:   Mon Aug 24 12:02:24 2020 +0000

    some compiling fixes

diff --git a/src/storage-rbox/typeof-def.h b/src/storage-rbox/typeof-def.h
index 4badd34..3ed0b71 100644
--- a/src/storage-rbox/typeof-def.h
+++ b/src/storage-rbox/typeof-def.h
@@ -23,7 +23,7 @@
 /* replacement for MODULE_CONTEXT (v 2.3, assigned void or long int, this is not allowed with c++) */
 #define RBOX_MODULE_CONTEXT(obj, id_ctx)                                                                  \
   (module_get_context_id(&(id_ctx).id) < array_count(&(obj)->module_contexts)                             \
-       ? (*((void **)array_idx_modifiable(&(obj)->module_contexts, module_get_context_id(&(id_ctx).id)) + \
+       ? (*((index_mailbox_context **)array_idx_modifiable(&(obj)->module_contexts, module_get_context_id(&(id_ctx).id)) + \
             OBJ_REGISTER_COMPATIBLE(obj, id_ctx)))                                                        \
        : NULL)