1
0
Fork 0
mirror of https://gitlab.alpinelinux.org/alpine/aports.git synced 2025-07-25 20:25:28 +03:00
aports/testing/dovecot-ceph-plugin/2-fixes.patch
2021-07-05 09:29:54 +00:00

21 lines
1.1 KiB
Diff

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)