]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
lint fixes.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Mar 2012 15:34:44 +0000 (15:34 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Wed, 21 Mar 2012 15:34:44 +0000 (15:34 +0000)
git-svn-id: file:///svn/unbound/trunk@2649 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iter_fwd.c
iterator/iter_hints.c

index 17eaecbd2039478c177f69dcabb76ba9f8f6e77b..04976db18b8fa931cd19f9fa6f9061db545f8d53 100644 (file)
@@ -259,7 +259,7 @@ read_forwards(struct iter_forwards* fwd, struct config_file* cfg)
                /* the flag is turned off for 'forward-first' so that the
                 * last resort will ask for parent-side NS record and thus
                 * fallback to the internet name servers on a failure */
-               dp->has_parent_side_NS = !s->isfirst;
+               dp->has_parent_side_NS = (uint8_t)!s->isfirst;
                if(!forwards_insert(fwd, LDNS_RR_CLASS_IN, dp))
                        return 0;
                verbose(VERB_QUERY, "Forward zone server list:");
index 36ed999f29c478a3091228ca5bd0f000054b190b..cfb9db7abb8cf420db6f22d536ceb3c253346397 100644 (file)
@@ -260,7 +260,7 @@ read_stubs(struct iter_hints* hints, struct config_file* cfg)
                /* the flag is turned off for 'stub-first' so that the
                 * last resort will ask for parent-side NS record and thus
                 * fallback to the internet name servers on a failure */
-               dp->has_parent_side_NS = !s->isfirst;
+               dp->has_parent_side_NS = (uint8_t)!s->isfirst;
                if(!hints_insert(hints, LDNS_RR_CLASS_IN, dp, !s->isprime))
                        return 0;
                delegpt_log(VERB_QUERY, dp);