From 6b306ab8752befc28d259be55495f8249cc2df24 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Wed, 6 Oct 2010 20:03:57 +0400 Subject: 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. --- src/plugins/spf.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/plugins/spf.c') 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); -- cgit v1.2.3