diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-10-06 20:03:57 +0400 |
commit | 6b306ab8752befc28d259be55495f8249cc2df24 (patch) | |
tree | 0fa3d471aef61925563709e0f8ee5667b57c7a9d /src/plugins/spf.c | |
parent | 8d0053734fb5a4ccd8c3bda731e6b7c8261c6f67 (diff) | |
download | rspamd-6b306ab8752befc28d259be55495f8249cc2df24.tar.gz rspamd-6b306ab8752befc28d259be55495f8249cc2df24.zip |
Fixes types (use glib ones) no functional change.
Now all comments in commit logs beginning with '*' would be included in changelog, so
important changes would be separated from small ones.
Diffstat (limited to 'src/plugins/spf.c')
-rw-r--r-- | src/plugins/spf.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/plugins/spf.c b/src/plugins/spf.c index 315e57f58..868ad7a32 100644 --- a/src/plugins/spf.c +++ b/src/plugins/spf.c @@ -48,10 +48,10 @@ #define DEFAULT_SYMBOL_ALLOW "R_SPF_ALLOW" struct spf_ctx { - int (*filter) (struct worker_task * task); - char *symbol_fail; - char *symbol_softfail; - char *symbol_allow; + gint (*filter) (struct worker_task * task); + gchar *symbol_fail; + gchar *symbol_softfail; + gchar *symbol_allow; memory_pool_t *spf_pool; radix_tree_t *whitelist_ip; @@ -61,7 +61,7 @@ static struct spf_ctx *spf_module_ctx = NULL; static void spf_symbol_callback (struct worker_task *task, void *unused); -int +gint spf_module_init (struct config_file *cfg, struct module_ctx **ctx) { spf_module_ctx = g_malloc (sizeof (struct spf_ctx)); @@ -74,11 +74,11 @@ spf_module_init (struct config_file *cfg, struct module_ctx **ctx) } -int +gint spf_module_config (struct config_file *cfg) { - char *value; - int res = TRUE; + gchar *value; + gint res = TRUE; spf_module_ctx->whitelist_ip = radix_tree_create (); @@ -111,7 +111,7 @@ spf_module_config (struct config_file *cfg) return res; } -int +gint spf_module_reconfig (struct config_file *cfg) { memory_pool_delete (spf_module_ctx->spf_pool); @@ -126,7 +126,7 @@ spf_plugin_callback (struct spf_record *record, struct worker_task *task) { GList *cur; struct spf_addr *addr; - uint32_t s, m; + guint32 s, m; if (record) { cur = g_list_first (record->addrs); |