commit 3d224cf: [Minor] Fix prototypes
Vsevolod Stakhov
vsevolod at highsecure.ru
Wed Feb 12 15:14:06 UTC 2020
Author: Vsevolod Stakhov
Date: 2020-02-12 15:08:01 +0000
URL: https://github.com/rspamd/rspamd/commit/3d224cf3d8895e95947895e8a87d1644046f567b (HEAD -> master)
[Minor] Fix prototypes
---
src/libserver/cfg_file.h | 1 +
src/libserver/cfg_utils.c | 4 ++--
src/libserver/ssl_util.c | 2 +-
3 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/libserver/cfg_file.h b/src/libserver/cfg_file.h
index 1d782dd8b..e37bccc69 100644
--- a/src/libserver/cfg_file.h
+++ b/src/libserver/cfg_file.h
@@ -856,6 +856,7 @@ gboolean rspamd_ip_is_local_cfg (struct rspamd_config *cfg,
*/
gboolean rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
struct rspamd_config *cfg);
+void rspamd_openssl_maybe_init (void);
#define msg_err_config(...) rspamd_default_log_function (G_LOG_LEVEL_CRITICAL, \
cfg->cfg_pool->tag.tagname, cfg->checksum, \
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d8237b88e..dac2e13c4 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -2639,7 +2639,7 @@ rspamd_config_ev_backend_to_string (int ev_backend, gboolean *effective)
#undef SET_EFFECTIVE
}
-static void
+void
rspamd_openssl_maybe_init (void)
{
static gboolean openssl_initialized = FALSE;
@@ -2802,7 +2802,7 @@ rspamd_config_libs (struct rspamd_external_libs_ctx *ctx,
if (cfg->local_addrs) {
rspamd_config_radix_from_ucl (cfg, cfg->local_addrs,
"Local addresses",
- ctx->local_addrs,
+ (struct rspamd_radix_map_helper **)ctx->local_addrs,
NULL,
NULL);
}
diff --git a/src/libserver/ssl_util.c b/src/libserver/ssl_util.c
index bff4d5014..f4e55fbea 100644
--- a/src/libserver/ssl_util.c
+++ b/src/libserver/ssl_util.c
@@ -970,4 +970,4 @@ gpointer rspamd_init_ssl_ctx_noverify (void)
#endif
return ssl_ctx_noverify;
-}
+}
\ No newline at end of file
More information about the Commits
mailing list