aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/radix.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-22 17:39:46 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-11-22 17:39:46 +0000
commita93fbccaea8bcec71180add91cf9957dda2a1954 (patch)
tree7cbff1e474bf41d03def8536340d1610bad97bf2 /src/libutil/radix.c
parent89956e513656feed88e7bbb05348dcea3fc1d615 (diff)
downloadrspamd-a93fbccaea8bcec71180add91cf9957dda2a1954.tar.gz
rspamd-a93fbccaea8bcec71180add91cf9957dda2a1954.zip
[Fix] Fix various warnings and issues
Diffstat (limited to 'src/libutil/radix.c')
-rw-r--r--src/libutil/radix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libutil/radix.c b/src/libutil/radix.c
index ac6938fe2..fcc6b1cf6 100644
--- a/src/libutil/radix.c
+++ b/src/libutil/radix.c
@@ -88,13 +88,13 @@ radix_insert_compressed (radix_compressed_t * tree,
msg_err_radix ("cannot insert %p, key: %s/%d, duplicate value",
(gpointer)value,
inet_ntop (AF_INET, key, ip_str, sizeof (ip_str) - 1),
- keybits - masklen);
+ (gint)(keybits - masklen));
}
else if (keybits == 128) {
msg_err_radix ("cannot insert %p, key: [%s]/%d, duplicate value",
(gpointer)value,
inet_ntop (AF_INET6, key, ip_str, sizeof (ip_str) - 1),
- keybits - masklen);
+ (gint)(keybits - masklen));
}
else {
msg_err_radix ("cannot insert %p with mask %z, key: %*xs, duplicate value",