summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-02-16 13:44:35 +0000
commit3256178a2433f242f69c55f6eaee36ea314b2f1a (patch)
tree69323a953a69d4d62c9c57e695c6f84ac9527bb8 /contrib
parent5c25ee027e883ea5251958ecee14ea5fc3e68946 (diff)
downloadrspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.tar.gz
rspamd-3256178a2433f242f69c55f6eaee36ea314b2f1a.zip
Fix couple of issues found by gcc-6
Diffstat (limited to 'contrib')
-rw-r--r--contrib/librdns/dns_private.h8
-rw-r--r--contrib/librdns/punycode.c8
2 files changed, 7 insertions, 9 deletions
diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h
index d23f8454d..76e32496d 100644
--- a/contrib/librdns/dns_private.h
+++ b/contrib/librdns/dns_private.h
@@ -30,14 +30,6 @@
#include "upstream.h"
#include "ref.h"
-static const unsigned base = 36;
-static const unsigned t_min = 1;
-static const unsigned t_max = 26;
-static const unsigned skew = 38;
-static const unsigned damp = 700;
-static const unsigned initial_n = 128;
-static const unsigned initial_bias = 72;
-
static const int dns_port = 53;
static const int default_io_cnt = 8;
diff --git a/contrib/librdns/punycode.c b/contrib/librdns/punycode.c
index 6ce348495..909d0d940 100644
--- a/contrib/librdns/punycode.c
+++ b/contrib/librdns/punycode.c
@@ -33,7 +33,13 @@
*/
#include "dns_private.h"
-
+static const unsigned base = 36;
+static const unsigned t_min = 1;
+static const unsigned t_max = 26;
+static const unsigned skew = 38;
+static const unsigned damp = 700;
+static const unsigned initial_n = 128;
+static const unsigned initial_bias = 72;
/* Punycode utility */
static unsigned int
digit (unsigned n)