From 3d7650fc497c779e7ca0abc78310250d057f0301 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Tue, 20 Dec 2011 19:11:49 +0300 Subject: More cleanups and fixes for compiler warnings. --- src/dns.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/dns.c') diff --git a/src/dns.c b/src/dns.c index 1d868eb58..bd048c4ac 100644 --- a/src/dns.c +++ b/src/dns.c @@ -531,7 +531,7 @@ format_dns_name (struct rspamd_dns_request *req, const gchar *name, guint namele gunichar *uclabel; glong uclabel_len; gsize punylabel_len; - gchar tmp_label[DNS_D_MAXLABEL]; + guint8 tmp_label[DNS_D_MAXLABEL]; if (namelen == 0) { namelen = strlen (name); @@ -543,11 +543,11 @@ format_dns_name (struct rspamd_dns_request *req, const gchar *name, guint namele /* Check label for unicode characters */ if (maybe_punycode_label (begin, &name_pos, &dot, &label_len)) { /* Convert to ucs4 */ - uclabel = g_utf8_to_ucs4_fast (begin, label_len, &uclabel_len); + uclabel = g_utf8_to_ucs4_fast ((gchar *)begin, label_len, &uclabel_len); memory_pool_add_destructor (req->pool, g_free, uclabel); punylabel_len = DNS_D_MAXLABEL; - punycode_label_toascii (uclabel, uclabel_len, tmp_label, &punylabel_len); + punycode_label_toascii (uclabel, uclabel_len, (gchar *)tmp_label, &punylabel_len); /* Try to compress name */ if (! try_compress_label (req->pool, pos, req->packet, punylabel_len, tmp_label, &table)) { /* Copy punylabel */ -- cgit v1.2.3