]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
last lint fixes
authorJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 10 Apr 2007 13:46:33 +0000 (13:46 +0000)
committerJelte Jansen <jeltejan@NLnetLabs.nl>
Tue, 10 Apr 2007 13:46:33 +0000 (13:46 +0000)
examples/ldns-dpa.c
str2host.c

index c9c342c0756be0489327223a66f88764266d63da..aea88ee81fb01e7d26cb820989e0a4e6c0662f05 100644 (file)
@@ -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);
        }
index ca60387e8f0b5d4aa90da1f962a0194247735e35..287a9eea06e7cf74b2a53d2e72d6352eea9465a9 100644 (file)
@@ -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;
                }