]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Minor] Fix prototypes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 Feb 2020 15:08:01 +0000 (15:08 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Wed, 12 Feb 2020 15:08:01 +0000 (15:08 +0000)
src/libserver/cfg_file.h
src/libserver/cfg_utils.c
src/libserver/ssl_util.c

index 1d782dd8b7da266d92803f027630992d780e5d13..e37bccc69a5731d2d25341fb429318a33678559f 100644 (file)
@@ -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, \
index d8237b88ed33b36b959d7659d3e8fc1a78585f18..dac2e13c47fe699faeaa8b3a4dd9e4b0358ce04e 100644 (file)
@@ -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);
                }
index bff4d5014ab9195b558725f35c649db3ff2e1de5..f4e55fbea50017163519c6561d1330e12bd28de4 100644 (file)
@@ -970,4 +970,4 @@ gpointer rspamd_init_ssl_ctx_noverify (void)
 #endif
 
        return ssl_ctx_noverify;
-}
+}
\ No newline at end of file