From: Jelte Jansen Date: Tue, 10 Apr 2007 13:46:33 +0000 (+0000) Subject: last lint fixes X-Git-Tag: release-1.2.0~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=24ccdf43e73acb0d80625e379be8403e87f4bd73;p=thirdparty%2Fldns.git last lint fixes --- diff --git a/examples/ldns-dpa.c b/examples/ldns-dpa.c index c9c342c0..aea88ee8 100644 --- a/examples/ldns-dpa.c +++ b/examples/ldns-dpa.c @@ -570,13 +570,13 @@ calculate_total_count_matches(match_counters *counters, match_operation *cur) average number of queries per second. In this case you want the number of seconds */ if (cur->id == MATCH_TIMESTAMP) { - result += abs((size_t) atol(counters->match->match->value) - (size_t) atol(counters->left->match->match->value)) - 1; + result += (size_t) abs((int) (atol(counters->match->match->value) - atol(counters->left->match->match->value))) - 1; } result += calculate_total_count_matches(counters->left, cur); } if (counters->right) { if (cur->id == MATCH_TIMESTAMP) { - result += abs((size_t) atol(counters->right->match->match->value) - (size_t) atol(counters->match->match->value)) - 1; + result += (size_t) abs((int) (atol(counters->right->match->match->value) - atol(counters->match->match->value))) - 1; } result += calculate_total_count_matches(counters->right, cur); } diff --git a/str2host.c b/str2host.c index ca60387e..287a9eea 100644 --- a/str2host.c +++ b/str2host.c @@ -625,7 +625,7 @@ ldns_str2rdf_alg(ldns_rdf **rd, const char *str) if (lt) { /* it was given as a integer */ - *rd = ldns_native2rdf_int8(LDNS_RDF_TYPE_INT8, lt->id); + *rd = ldns_native2rdf_int8(LDNS_RDF_TYPE_INT8, (uint8_t) lt->id); if (!*rd) { st = LDNS_STATUS_ERR; }