commit 2927c41: [Minor] Commit leftovers

Vsevolod Stakhov vsevolod at rspamd.com
Sat Oct 15 12:42:03 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-10-15 13:38:21 +0100
URL: https://github.com/rspamd/rspamd/commit/2927c41aba1da86cd742e80f3108665232dc772a (HEAD -> master)

[Minor] Commit leftovers

---
 src/client/rspamc.cxx                    | 2 +-
 src/libserver/symcache/symcache_impl.cxx | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/client/rspamc.cxx b/src/client/rspamc.cxx
index 9719445b6..e1699c200 100644
--- a/src/client/rspamc.cxx
+++ b/src/client/rspamc.cxx
@@ -474,7 +474,7 @@ rspamc_password_callback(const gchar *option_name,
 		std::string_view value_view{value};
 		if (value_view[0] == '/' || value_view[0] == '.') {
 			/* Try to open file */
-			auto locked_mmap = rspamd::util::raii_mmaped_locked_file::mmap_shared(value, O_RDONLY, PROT_READ);
+			auto locked_mmap = rspamd::util::raii_mmaped_file::mmap_shared(value, O_RDONLY, PROT_READ);
 
 			if (!locked_mmap.has_value() || locked_mmap.value().get_size() == 0) {
 				/* Just use it as a string */
diff --git a/src/libserver/symcache/symcache_impl.cxx b/src/libserver/symcache/symcache_impl.cxx
index a7721f6df..961f270ce 100644
--- a/src/libserver/symcache/symcache_impl.cxx
+++ b/src/libserver/symcache/symcache_impl.cxx
@@ -228,7 +228,7 @@ auto symcache::init() -> bool
 
 auto symcache::load_items() -> bool
 {
-	auto cached_map = util::raii_mmaped_locked_file::mmap_shared(cfg->cache_filename,
+	auto cached_map = util::raii_mmaped_file::mmap_shared(cfg->cache_filename,
 			O_RDONLY, PROT_READ);
 
 	if (!cached_map.has_value()) {


More information about the Commits mailing list