From: Wouter Wijngaards Date: Thu, 21 Jun 2007 12:02:44 +0000 (+0000) Subject: Const and redo dso fixup. X-Git-Tag: ldns-1.3.0_pre_20070822~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=29fc455d2691a55ed1492b604fc8a4f74751ca01;p=thirdparty%2Fldns.git Const and redo dso fixup. --- diff --git a/keys.c b/keys.c index 116176fb..68897081 100644 --- a/keys.c +++ b/keys.c @@ -788,8 +788,8 @@ ldns_key2rr(const ldns_key *k) case LDNS_SIGN_DSA: ldns_rr_push_rdf(pubkey, ldns_native2rdf_int8(LDNS_RDF_TYPE_ALG, LDNS_DSA)); - rsa = ldns_key_dsa_key(k); - if (!rsa) { + dsa = ldns_key_dsa_key(k); + if (!dsa) { return NULL; } else { if (!ldns_key_dsa2bin(bin, dsa, &size)) { diff --git a/ldns/packet.h b/ldns/packet.h index bd5c5e53..ab52da44 100644 --- a/ldns/packet.h +++ b/ldns/packet.h @@ -445,7 +445,7 @@ ldns_rr_list *ldns_pkt_additional(const ldns_pkt *p); * \param[in] s what section(s) to return * \return ldns_rr_list with the rr's or NULL if none were found */ -ldns_rr_list *ldns_pkt_get_section_clone(ldns_pkt *p, ldns_pkt_section s); +ldns_rr_list *ldns_pkt_get_section_clone(const ldns_pkt *p, ldns_pkt_section s); /** * return all the rr with a specific name from a packet. Optionally diff --git a/packet.c b/packet.c index 1aabccb4..59458718 100644 --- a/packet.c +++ b/packet.c @@ -405,7 +405,7 @@ ldns_pkt_empty(ldns_pkt *p) ldns_rr_list * -ldns_pkt_get_section_clone(ldns_pkt *packet, ldns_pkt_section s) +ldns_pkt_get_section_clone(const ldns_pkt *packet, ldns_pkt_section s) { switch(s) { case LDNS_SECTION_QUESTION: