aboutsummaryrefslogtreecommitdiffstats
path: root/src/libmime
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2023-08-16 14:20:15 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2023-08-16 14:20:15 +0100
commitef583245356015ce29961e0f7ffdb5880edc5fc2 (patch)
treec4c8aa3149da38f443a75bf63d2d33d0dab9a61c /src/libmime
parent5ffee59dfce8b60669f93fc59c8304f9ec4703f7 (diff)
downloadrspamd-ef583245356015ce29961e0f7ffdb5880edc5fc2.tar.gz
rspamd-ef583245356015ce29961e0f7ffdb5880edc5fc2.zip
[Rework] More steps to do refactoring
Diffstat (limited to 'src/libmime')
-rw-r--r--src/libmime/lang_detection.c8
-rw-r--r--src/libmime/lang_detection_fasttext.cxx6
2 files changed, 7 insertions, 7 deletions
diff --git a/src/libmime/lang_detection.c b/src/libmime/lang_detection.c
index 52221cd32..aa5447c8b 100644
--- a/src/libmime/lang_detection.c
+++ b/src/libmime/lang_detection.c
@@ -1,11 +1,11 @@
-/*-
- * Copyright 2017 Vsevolod Stakhov
+/*
+ * Copyright 2023 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -800,7 +800,7 @@ rspamd_language_detector_init(struct rspamd_config *cfg)
ucl_object_t *stop_words;
bool prefer_fasttext = true;
- section = ucl_object_lookup(cfg->rcl_obj, "lang_detection");
+ section = ucl_object_lookup(cfg->cfg_ucl_obj, "lang_detection");
if (section != NULL) {
elt = ucl_object_lookup(section, "languages");
diff --git a/src/libmime/lang_detection_fasttext.cxx b/src/libmime/lang_detection_fasttext.cxx
index f06e8ccb6..a1490fc11 100644
--- a/src/libmime/lang_detection_fasttext.cxx
+++ b/src/libmime/lang_detection_fasttext.cxx
@@ -1,11 +1,11 @@
-/*-
+/*
* Copyright 2023 Vsevolod Stakhov
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
- * http://www.apache.org/licenses/LICENSE-2.0
+ * http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
@@ -45,7 +45,7 @@ private:
public:
explicit fasttext_langdet(struct rspamd_config *cfg)
{
- const auto *ucl_obj = cfg->rcl_obj;
+ const auto *ucl_obj = cfg->cfg_ucl_obj;
const auto *opts_section = ucl_object_find_key(ucl_obj, "lang_detection");
if (opts_section) {