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/chartable.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/chartable.c')
-rw-r--r-- | src/plugins/chartable.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/plugins/chartable.c b/src/plugins/chartable.c index 785cd3a59..2f62464a6 100644 --- a/src/plugins/chartable.c +++ b/src/plugins/chartable.c @@ -43,8 +43,8 @@ #define DEFAULT_THRESHOLD 0.1 struct chartable_ctx { - int (*filter) (struct worker_task * task); - char *symbol; + gint (*filter) (struct worker_task * task); + gchar *symbol; double threshold; memory_pool_t *chartable_pool; @@ -52,10 +52,10 @@ struct chartable_ctx { static struct chartable_ctx *chartable_module_ctx = NULL; -static int chartable_mime_filter (struct worker_task *task); +static gint chartable_mime_filter (struct worker_task *task); static void chartable_symbol_callback (struct worker_task *task, void *unused); -int +gint chartable_module_init (struct config_file *cfg, struct module_ctx **ctx) { chartable_module_ctx = g_malloc (sizeof (struct chartable_ctx)); @@ -69,11 +69,11 @@ chartable_module_init (struct config_file *cfg, struct module_ctx **ctx) } -int +gint chartable_module_config (struct config_file *cfg) { - char *value; - int res = TRUE; + gchar *value; + gint res = TRUE; if ((value = get_module_opt (cfg, "chartable", "symbol")) != NULL) { chartable_module_ctx->symbol = memory_pool_strdup (chartable_module_ctx->chartable_pool, value); @@ -98,7 +98,7 @@ chartable_module_config (struct config_file *cfg) return res; } -int +gint chartable_module_reconfig (struct config_file *cfg) { memory_pool_delete (chartable_module_ctx->chartable_pool); @@ -110,11 +110,11 @@ chartable_module_reconfig (struct config_file *cfg) static gboolean check_part (struct mime_text_part *part, gboolean raw_mode) { - unsigned char *p, *p1; + guchar *p, *p1; gunichar c, t; GUnicodeScript scc, sct; - uint32_t mark = 0, total = 0; - uint32_t remain = part->content->len; + guint32 mark = 0, total = 0; + guint32 remain = part->content->len; p = part->content->data; @@ -188,7 +188,7 @@ chartable_symbol_callback (struct worker_task *task, void *unused) } -static int +static gint chartable_mime_filter (struct worker_task *task) { /* XXX: remove it */ |