diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-14 12:15:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2023-08-14 12:15:55 +0100 |
commit | 8f4a6729d18ba775fdb7861ef0239f312d705f4a (patch) | |
tree | 30374b87f41d0dce8a111b7bd3c16ceb3a8a2253 /src/libutil | |
parent | 5ab7613c28aeda1c398a9dad447d0e5b5dedb8fe (diff) | |
download | rspamd-8f4a6729d18ba775fdb7861ef0239f312d705f4a.tar.gz rspamd-8f4a6729d18ba775fdb7861ef0239f312d705f4a.zip |
[Rework] Use more c++ in cfg_utils
Diffstat (limited to 'src/libutil')
-rw-r--r-- | src/libutil/mem_pool.c | 8 | ||||
-rw-r--r-- | src/libutil/mem_pool.h | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/src/libutil/mem_pool.c b/src/libutil/mem_pool.c index f5771ff7a..a348bcaaa 100644 --- a/src/libutil/mem_pool.c +++ b/src/libutil/mem_pool.c @@ -1,11 +1,11 @@ -/*- - * Copyright 2016 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, @@ -621,7 +621,7 @@ rspamd_mempool_strdup_(rspamd_mempool_t *pool, const gchar *src, const gchar *lo } gchar * -rspamd_mempool_ftokdup_(rspamd_mempool_t *pool, const rspamd_ftok_t *src, +rspamd_mempool_ftokdup_(rspamd_mempool_t *pool, struct f_str_tok src, const gchar *loc) { gchar *newstr; diff --git a/src/libutil/mem_pool.h b/src/libutil/mem_pool.h index 23f70092f..8c253efe7 100644 --- a/src/libutil/mem_pool.h +++ b/src/libutil/mem_pool.h @@ -1,11 +1,11 @@ -/*- - * Copyright 2019 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, @@ -226,7 +226,7 @@ struct f_str_tok; * @return pointer to newly created string that is copy of src */ gchar *rspamd_mempool_ftokdup_(rspamd_mempool_t *pool, - const struct f_str_tok *src, + struct f_str_tok src, const gchar *loc) RSPAMD_ATTR_ALLOC_ALIGN(MIN_MEM_ALIGNMENT); #define rspamd_mempool_ftokdup(pool, src) \ |