aboutsummaryrefslogtreecommitdiffstats
path: root/testing/dovecot-ceph-plugin/3-fixes.patch
blob: 6b191d3f117d6a49dfacbbd5acbb15aa7068ad2f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
submitted as: https://github.com/ceph-dovecot/dovecot-ceph-plugin/pull/272

commit 4a159760a514b60b1343764bd93d6aee78cb63a1
Author: None None <none@f1-outsourcing.eu>
Date:   Mon Aug 24 10:42:44 2020 +0000

    some compiling fixes

diff --git a/src/storage-rbox/rbox-mail.cpp b/src/storage-rbox/rbox-mail.cpp
index bd15d82..8d0b8a3 100644
--- a/src/storage-rbox/rbox-mail.cpp
+++ b/src/storage-rbox/rbox-mail.cpp
@@ -496,7 +496,7 @@ int rbox_get_guid_metadata(struct rbox_mail *mail, const char **value_r) {
   }
   // lost for some reason, use fallback
   // index is empty. we have to check the object attributes do we have to tell someone that the index is broken?
-  if (rbox_mail_metadata_get(mail, rbox_metadata_key::RBOX_METADATA_GUID, value_r) < 0) {
+  if (rbox_mail_metadata_get(mail, rbox_metadata_key::RBOX_METADATA_GUID, const_cast<char**>(value_r)) < 0) {
     return -1;
   }
 
diff --git a/src/storage-rbox/rbox-save.cpp b/src/storage-rbox/rbox-save.cpp
index bc11406..7b607ed 100644
--- a/src/storage-rbox/rbox-save.cpp
+++ b/src/storage-rbox/rbox-save.cpp
@@ -192,7 +192,7 @@ void init_output_stream(mail_save_context *_ctx) {
   // create buffer ( delete is in wait_for_write_operations)
   r_ctx->rados_mail->set_mail_buffer(new librados::bufferlist());
   r_ctx->output_stream =
-      o_stream_create_bufferlist(r_ctx->rados_mail, &r_ctx->rados_storage, rbox->storage->config->is_write_chunks());
+      o_stream_create_bufferlist(r_ctx->rados_mail, const_cast<librmb::RadosStorage*>(&r_ctx->rados_storage), rbox->storage->config->is_write_chunks());
   o_stream_cork(r_ctx->output_stream);
   _ctx->data.output = r_ctx->output_stream;