diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-14 14:01:09 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-14 14:01:09 +0100 |
commit | 81d9b6e8f4eeaa5498e6c4ab7e80eb2789b46aad (patch) | |
tree | 759b86113a8e9e0562f2a880d72dc8f753353010 /src/libserver/symcache/symcache_item.cxx | |
parent | 8f4a6729d18ba775fdb7861ef0239f312d705f4a (diff) | |
download | rspamd-81d9b6e8f4eeaa5498e6c4ab7e80eb2789b46aad.tar.gz rspamd-81d9b6e8f4eeaa5498e6c4ab7e80eb2789b46aad.zip |
[Rework] Finish utils rework
Diffstat (limited to 'src/libserver/symcache/symcache_item.cxx')
-rw-r--r-- | src/libserver/symcache/symcache_item.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libserver/symcache/symcache_item.cxx b/src/libserver/symcache/symcache_item.cxx index a468aaf03..24e198dd3 100644 --- a/src/libserver/symcache/symcache_item.cxx +++ b/src/libserver/symcache/symcache_item.cxx @@ -1,11 +1,11 @@ -/*- - * Copyright 2022 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, @@ -537,7 +537,7 @@ auto virtual_item::resolve_parent(const symcache &cache) -> bool return false; } -auto item_type_from_c(enum rspamd_symbol_type type) -> tl::expected<std::pair<symcache_item_type, int>, std::string> +auto item_type_from_c(int type) -> tl::expected<std::pair<symcache_item_type, int>, std::string> { constexpr const auto trivial_types = SYMBOL_TYPE_CONNFILTER | SYMBOL_TYPE_PREFILTER | SYMBOL_TYPE_POSTFILTER | SYMBOL_TYPE_IDEMPOTENT | SYMBOL_TYPE_COMPOSITE | SYMBOL_TYPE_CLASSIFIER | SYMBOL_TYPE_VIRTUAL; |