summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/cfg_xml.c2
-rw-r--r--src/classifiers/bayes.c2
-rw-r--r--src/classifiers/winnow.c2
-rw-r--r--src/lua/lua_task.c2
-rw-r--r--src/plugins/fuzzy_check.c4
-rw-r--r--src/protocol.c2
-rw-r--r--src/trie.c2
-rw-r--r--src/view.c2
8 files changed, 9 insertions, 9 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index a631e26cd..5e0d69a4c 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -690,7 +690,7 @@ worker_handle_bind (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GH
return TRUE;
}
-G_INLINE_FUNC gboolean
+static inline gboolean
check_action (const gchar *data, gint *result)
{
if (g_ascii_strncasecmp (data, "reject", sizeof ("reject") - 1) == 0) {
diff --git a/src/classifiers/bayes.c b/src/classifiers/bayes.c
index 7bc3fde54..274f82ad0 100644
--- a/src/classifiers/bayes.c
+++ b/src/classifiers/bayes.c
@@ -36,7 +36,7 @@
#define LOCAL_PROB_DENOM 16.0
-G_INLINE_FUNC GQuark
+static inline GQuark
bayes_error_quark (void)
{
return g_quark_from_static_string ("bayes-error");
diff --git a/src/classifiers/winnow.c b/src/classifiers/winnow.c
index b7fe4e123..24ee7821c 100644
--- a/src/classifiers/winnow.c
+++ b/src/classifiers/winnow.c
@@ -46,7 +46,7 @@
#define MAX_LEARN_ITERATIONS 100
-G_INLINE_FUNC GQuark
+static inline GQuark
winnow_error_quark (void)
{
return g_quark_from_static_string ("winnow-error");
diff --git a/src/lua/lua_task.c b/src/lua/lua_task.c
index c5adedcfe..2b19c45be 100644
--- a/src/lua/lua_task.c
+++ b/src/lua/lua_task.c
@@ -604,7 +604,7 @@ lua_task_get_images (lua_State *L)
return 1;
}
-G_INLINE_FUNC gboolean
+static inline gboolean
lua_push_symbol_result (lua_State *L, struct worker_task *task, struct metric *metric, const gchar *symbol)
{
struct metric_result *metric_res;
diff --git a/src/plugins/fuzzy_check.c b/src/plugins/fuzzy_check.c
index 1942d3c5a..34b4cba5b 100644
--- a/src/plugins/fuzzy_check.c
+++ b/src/plugins/fuzzy_check.c
@@ -583,7 +583,7 @@ fuzzy_learn_callback (gint fd, short what, void *arg)
remove_normal_event (session->session->s, fuzzy_learn_fin, session);
}
-G_INLINE_FUNC void
+static inline void
register_fuzzy_call (struct worker_task *task, fuzzy_hash_t *h)
{
struct fuzzy_client_session *session;
@@ -701,7 +701,7 @@ fuzzy_symbol_callback (struct worker_task *task, void *unused)
}
}
-G_INLINE_FUNC gboolean
+static inline gboolean
register_fuzzy_controller_call (struct controller_session *session, struct worker_task *task, fuzzy_hash_t *h,
gint cmd, gint value, gint flag, gint *saved)
{
diff --git a/src/protocol.c b/src/protocol.c
index 11f82bd47..77043bdc0 100644
--- a/src/protocol.c
+++ b/src/protocol.c
@@ -92,7 +92,7 @@ static GList *custom_commands = NULL;
/* For default metric, dirty hack, but much faster than hash lookup */
static double default_score, default_required_score;
-G_INLINE_FUNC const gchar *
+static inline const gchar *
rspamc_proto_str (guint ver)
{
if (ver >= 12) {
diff --git a/src/trie.c b/src/trie.c
index 03f600cdb..21743d856 100644
--- a/src/trie.c
+++ b/src/trie.c
@@ -85,7 +85,7 @@ rspamd_trie_insert_char (rspamd_trie_t *trie, gint depth, struct rspamd_trie_sta
return q;
}
-G_INLINE_FUNC struct rspamd_trie_match *
+static inline struct rspamd_trie_match *
check_match (struct rspamd_trie_state *s, gchar c)
{
struct rspamd_trie_match *m = s->match;
diff --git a/src/view.c b/src/view.c
index 3477b35ef..ec4bb1082 100644
--- a/src/view.c
+++ b/src/view.c
@@ -207,7 +207,7 @@ find_view_by_from (GList * views, struct worker_task *task)
return NULL;
}
-G_INLINE_FUNC gboolean
+static inline gboolean
check_view_rcpt (struct rspamd_view *v, struct worker_task *task)
{
GList *cur, *cur_re;