aboutsummaryrefslogtreecommitdiffstats
path: root/src/dns.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:11:49 +0300
committerVsevolod Stakhov <vsevolod@rambler-co.ru>2011-12-20 19:11:49 +0300
commit3d7650fc497c779e7ca0abc78310250d057f0301 (patch)
treeb8abe0afe4c751729fec4996b1e9db9b4f1bd0e4 /src/dns.c
parentea1da6a43cf4f6bfcc23722a05baaae203a00db4 (diff)
downloadrspamd-3d7650fc497c779e7ca0abc78310250d057f0301.tar.gz
rspamd-3d7650fc497c779e7ca0abc78310250d057f0301.zip
More cleanups and fixes for compiler warnings.0.4.6
Diffstat (limited to 'src/dns.c')
-rw-r--r--src/dns.c6
1 files changed, 3 insertions, 3 deletions
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 */