Fix various compiler warnings from the clang llvm compiler.

git-svn-id: file:///svn/unbound/trunk@2111 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
Wouter Wijngaards
2010-05-18 12:37:04 +00:00
parent 271445fa4d
commit b4b641807b
14 changed files with 25 additions and 22 deletions
+1 -2
View File
@@ -110,7 +110,6 @@ write_q(int fd, int udp, ldns_buffer* buf, int id,
{
struct query_info qinfo;
ldns_rdf* rdf;
int labs;
uint16_t len;
/* qname */
rdf = ldns_dname_new_frm_str(strname);
@@ -119,7 +118,7 @@ write_q(int fd, int udp, ldns_buffer* buf, int id,
exit(1);
}
qinfo.qname = memdup(ldns_rdf_data(rdf), ldns_rdf_size(rdf));
labs = dname_count_size_labels(qinfo.qname, &qinfo.qname_len);
(void)dname_count_size_labels(qinfo.qname, &qinfo.qname_len);
ldns_rdf_deep_free(rdf);
if(!qinfo.qname) fatal_exit("out of memory");