]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Const and redo dso fixup.
authorWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 21 Jun 2007 12:02:44 +0000 (12:02 +0000)
committerWouter Wijngaards <wouter@NLnetLabs.nl>
Thu, 21 Jun 2007 12:02:44 +0000 (12:02 +0000)
keys.c
ldns/packet.h
packet.c

diff --git a/keys.c b/keys.c
index 116176fb00ab151ac08ef111816799f5c43163f0..688970812d76124e188382338f393ffe0c071137 100644 (file)
--- 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)) {
index bd5c5e532cbb2a5e972be234e2a303565b5291d7..ab52da44e97faea54ad1db8a2edc8d4040cd47cb 100644 (file)
@@ -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
index 1aabccb415ac93b7a7fd574914e05224cb23680a..59458718965d7f46a4e4962c23635a41a363661a 100644 (file)
--- 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: