]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Make splint happy
authorWillem Toorop <willem@NLnetLabs.nl>
Fri, 14 Sep 2012 22:18:33 +0000 (22:18 +0000)
committerWillem Toorop <willem@NLnetLabs.nl>
Fri, 14 Sep 2012 22:18:33 +0000 (22:18 +0000)
examples/ldns-dane.c
radix.c

index 25091d874a2194678f9a3bfc8cc04130d3516a7e..0eaeb8c5913bfde27c498d3bf266fc571202e996 100644 (file)
@@ -595,7 +595,7 @@ dane_lookup_addresses(ldns_resolver* res, ldns_rdf* dname,
 }
 
 bool
-dane_wildcard_label_cmp(int iw, const char* w, int il, const char* l)
+dane_wildcard_label_cmp(uint8_t iw, const char* w, uint8_t il, const char* l)
 {
        if (iw == 0) { /* End of match label */
                if (il == 0) { /* And end in the to be matched label */
@@ -640,8 +640,8 @@ dane_wildcard_label_cmp(int iw, const char* w, int il, const char* l)
 bool
 dane_label_matches_label(ldns_rdf* w, ldns_rdf* l)
 {
-       int iw;
-       int il;
+       uint8_t iw;
+       uint8_t il;
 
        iw = ldns_rdf_data(w)[0];
        il = ldns_rdf_data(l)[0];
diff --git a/radix.c b/radix.c
index 2d8abccd533b83a53fcc6eb1cebc434f6e374bba..99764aecdd2e88411e8e9eeeb60022b7850a1e32 100644 (file)
--- a/radix.c
+++ b/radix.c
@@ -1304,9 +1304,9 @@ ldns_radix_last_in_subtree_incl_self(ldns_radix_node_t* node)
 static ldns_radix_node_t*
 ldns_radix_last_in_subtree(ldns_radix_node_t* node)
 {
-       uint16_t i;
+       int i;
        /** Look for the most right leaf node. */
-       for (i=(node->len)-1; i >= 0; i--) {
+       for (i=(int)(node->len)-1; i >= 0; i--) {
                if (node->array[i].edge) {
                        /** Keep looking for the most right leaf node. */
                        if (node->array[i].edge->len > 0) {