summaryrefslogtreecommitdiff
path: root/rr.c
diff options
context:
space:
mode:
authorMatthijs Mekking <matje@NLnetLabs.nl>2010-06-02 11:23:04 +0200
committerMatthijs Mekking <matje@NLnetLabs.nl>2010-06-02 11:23:04 +0200
commit4afcac4dcb5762ad53c9043f099c91e66bb91da7 (patch)
treed292074ad3cedb3d4a03871f6b508fb43a248821 /rr.c
parent82b6264408b0245c35aa0e572800416ee5e7c784 (diff)
downloadldns-4afcac4dcb5762ad53c9043f099c91e66bb91da7.tar.gz
remove dead code,
{} consistency, tabs space issue
Diffstat (limited to 'rr.c')
-rw-r--r--rr.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/rr.c b/rr.c
index 713e4a54..d11b9609 100644
--- a/rr.c
+++ b/rr.c
@@ -391,7 +391,7 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
ldns_buffer_skip(rd_buf, 1);
}
- pre_data_pos = ldns_buffer_position(rd_buf);
+ pre_data_pos = ldns_buffer_position(rd_buf);
if ((c = ldns_bget_token(rd_buf, rd, delimiters,
LDNS_MAX_RDFLEN)) != -1) {
/* hmmz, rfc3597 specifies that any type can be represented with
@@ -439,8 +439,8 @@ ldns_rr_new_frm_str_internal(ldns_rr **newrr, const char *str,
/* correct the rdf type */
/* if *we* know the type, interpret it as wireformat */
if (desc) {
- size_t hex_pos = 0;
- uint8_t *hex_data = LDNS_XMALLOC(uint8_t, hex_data_size + 2);
+ size_t hex_pos = 0;
+ uint8_t *hex_data = LDNS_XMALLOC(uint8_t, hex_data_size + 2);
ldns_write_uint16(hex_data, hex_data_size);
ldns_hexstring_to_data(hex_data + 2, hex_data_str);
(void) ldns_wire2rdf(new, hex_data,