]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
please lint.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Apr 2007 12:48:09 +0000 (12:48 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Fri, 27 Apr 2007 12:48:09 +0000 (12:48 +0000)
git-svn-id: file:///svn/unbound/trunk@267 be551aaa-1e26-0410-a405-d3ace91eadb9

testcode/unitmsgparse.c

index 9a9f20845a2f8dafef0b1dd021440808697394a4..cbabbcb3856c1d5dceb1f3a4b5765b74755c00b0 100644 (file)
@@ -247,7 +247,6 @@ testpkt(ldns_buffer* pkt, struct alloc_cache* alloc, ldns_buffer* out,
 {
        struct query_info qi;
        struct reply_info* rep = 0;
-       size_t sz;
        int ret;
        uint16_t id;
        uint16_t flags;
@@ -266,9 +265,9 @@ testpkt(ldns_buffer* pkt, struct alloc_cache* alloc, ldns_buffer* out,
                        checkformerr(pkt);
                unit_assert(ret != LDNS_RCODE_SERVFAIL);
        } else {
-               sz = reply_info_encode(&qi, rep, id, flags, out, timenow,
+               ret = reply_info_encode(&qi, rep, id, flags, out, timenow,
                        region);
-               unit_assert(sz != 0); /* udp packets should fit in 1024 iov */
+               unit_assert(ret != 0); /* udp packets should fit */
                if(vbmp) printf("inlen %u outlen %u\n", 
                        (unsigned)ldns_buffer_limit(pkt),
                        (unsigned)ldns_buffer_limit(out));