diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-19 16:24:17 +0300 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2011-02-19 16:24:17 +0300 |
commit | e0593fbd3b6d9c39ad7891387fc6a0faa4eea29c (patch) | |
tree | 98aef416013adf9b2c0a586a1fde38f777b6e1e6 /src/client/rspamc.c | |
parent | fe1ab59efe607dfb6ee60f7bc590286909567cba (diff) | |
download | rspamd-e0593fbd3b6d9c39ad7891387fc6a0faa4eea29c.tar.gz rspamd-e0593fbd3b6d9c39ad7891387fc6a0faa4eea29c.zip |
* Add ability to save symbols that are inside composites with '-' flag.
Remove warnings from rspamc.
Add new rules [1]
Submitted by: Victor Ustugov [1]
Diffstat (limited to 'src/client/rspamc.c')
-rw-r--r-- | src/client/rspamc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/client/rspamc.c b/src/client/rspamc.c index ab6ba5ad7..ceb76169a 100644 --- a/src/client/rspamc.c +++ b/src/client/rspamc.c @@ -161,16 +161,16 @@ show_metric_result (gpointer key, gpointer value, gpointer ud) gboolean first; if (metric->is_skipped) { - PRINT_FUNC ("\n%s: Skipped\n", key); + PRINT_FUNC ("\n%s: Skipped\n", (const gchar *)key); } else { if (tty) { - PRINT_FUNC ("\n\033[1m%s:\033[0m %s [ %.2f / %.2f ]\n", key, + PRINT_FUNC ("\n\033[1m%s:\033[0m %s [ %.2f / %.2f ]\n", (const gchar *)key, metric->score > metric->required_score ? "True" : "False", metric->score, metric->required_score); } else { - PRINT_FUNC ("\n%s: %s [ %.2f / %.2f ]\n", key, + PRINT_FUNC ("\n%s: %s [ %.2f / %.2f ]\n", (const gchar *)key, metric->score > metric->required_score ? "True" : "False", metric->score, metric->required_score); } @@ -205,10 +205,10 @@ show_metric_result (gpointer key, gpointer value, gpointer ud) cur = g_list_first (s->options); while (cur) { if (cur->next) { - PRINT_FUNC ("%s,", cur->data); + PRINT_FUNC ("%s,", (const gchar *)cur->data); } else { - PRINT_FUNC ("%s", cur->data); + PRINT_FUNC ("%s", (const gchar *)cur->data); } cur = g_list_next (cur); } @@ -231,10 +231,10 @@ show_metric_result (gpointer key, gpointer value, gpointer ud) cur = g_list_first (s->options); while (cur) { if (cur->next) { - PRINT_FUNC ("%s,", cur->data); + PRINT_FUNC ("%s,", (const gchar *)cur->data); } else { - PRINT_FUNC ("%s)", cur->data); + PRINT_FUNC ("%s)", (const gchar *)cur->data); } cur = g_list_next (cur); } @@ -268,10 +268,10 @@ print_rspamd_result (struct rspamd_result *res) PRINT_FUNC ("\n"); while (g_hash_table_iter_next (&it, &k, &v)) { if (tty) { - PRINT_FUNC ("\033[1m%s:\033[0m %s\n", k, v); + PRINT_FUNC ("\033[1m%s:\033[0m %s\n", (const gchar *)k, (const gchar *)v); } else { - PRINT_FUNC ("%s: %s\n", k, v); + PRINT_FUNC ("%s: %s\n", (const gchar *)k, (const gchar *)v); } } PRINT_FUNC ("\n"); |