mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-25 20:25:28 +03:00
34 lines
1.6 KiB
Diff
34 lines
1.6 KiB
Diff
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;
|
|
|