From: Wouter Wijngaards Date: Fri, 27 Apr 2007 12:48:09 +0000 (+0000) Subject: please lint. X-Git-Tag: release-0.3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cfe9bcc5859c8951f658ab4e23fa595512aaf280;p=thirdparty%2Funbound.git please lint. git-svn-id: file:///svn/unbound/trunk@267 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/testcode/unitmsgparse.c b/testcode/unitmsgparse.c index 9a9f20845..cbabbcb38 100644 --- a/testcode/unitmsgparse.c +++ b/testcode/unitmsgparse.c @@ -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));