From: Wouter Wijngaards Date: Thu, 23 Feb 2017 14:17:58 +0000 (+0000) Subject: fixed for lint X-Git-Tag: release-1.6.2rc1~91 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=975c915632e283ef145960661413448731976568;p=thirdparty%2Funbound.git fixed for lint git-svn-id: file:///svn/unbound/trunk@4023 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/smallapp/unbound-control.c b/smallapp/unbound-control.c index ca9de3268..7c25404d3 100644 --- a/smallapp/unbound-control.c +++ b/smallapp/unbound-control.c @@ -180,7 +180,7 @@ timeval_divide(struct timeval* avg, const struct timeval* sum, size_t d) #define PR_UL(str, var) printf(str SQ"%lu\n", (unsigned long)(var)); #define PR_UL_SUB(str, nm, var) printf(str".%s"SQ"%lu\n", nm, (unsigned long)(var)); #define PR_TIMEVAL(str, var) printf(str SQ ARG_LL "d.%6.6d\n", \ - (long long)var.tv_sec, (unsigned)var.tv_usec); + (long long)var.tv_sec, (int)var.tv_usec); #define PR_LL(str, var) printf(str SQ ARG_LL"d\n", (long long)(var)); /** print stat block */ @@ -260,7 +260,7 @@ static void print_extended(struct stats_info* s) for(i=0; isvr.qtype[i] == 0) continue; - sldns_wire2str_type_buf(i, nm, sizeof(nm)); + sldns_wire2str_type_buf((uint16_t)i, nm, sizeof(nm)); PR_UL_SUB("num.query.type", nm, s->svr.qtype[i]); } if(!inhibit_zero || s->svr.qtype_big) { @@ -271,7 +271,7 @@ static void print_extended(struct stats_info* s) for(i=0; isvr.qclass[i] == 0) continue; - sldns_wire2str_class_buf(i, nm, sizeof(nm)); + sldns_wire2str_class_buf((uint16_t)i, nm, sizeof(nm)); PR_UL_SUB("num.query.class", nm, s->svr.qclass[i]); } if(!inhibit_zero || s->svr.qclass_big) {