From 25a6550d2c944342da8715e55555dd86155555cc Mon Sep 17 00:00:00 2001 From: Matthijs Mekking Date: Tue, 18 Feb 2014 09:28:16 +0000 Subject: [PATCH] name static function better git-svn-id: file:///svn/unbound/trunk@3085 be551aaa-1e26-0410-a405-d3ace91eadb9 --- ldns/str2wire.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/ldns/str2wire.c b/ldns/str2wire.c index 9de146190..fffd2b34e 100644 --- a/ldns/str2wire.c +++ b/ldns/str2wire.c @@ -74,8 +74,8 @@ static int sldns_str2wire_dname_buf_rel(const char* str, uint8_t* buf, len = 0; if(*olen < 1) return RET_ERR(LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL, 0); - q = buf+1; - pq = buf; + q = buf+1; /* p */ + pq = buf; /* h */ label_len = 0; for (s = str; *s; s++, q++) { if (q >= buf + *olen) @@ -302,7 +302,7 @@ rrinternal_get_type(sldns_buffer* strbuf, char* token, size_t token_len, /** put type, class, ttl into rr buffer */ static int -rrinternal_writetype(sldns_buffer* strbuf, uint8_t* rr, size_t len, +rrinternal_write_typeclassttl(sldns_buffer* strbuf, uint8_t* rr, size_t len, size_t dname_len, uint16_t tp, uint16_t cl, uint32_t ttl, int question) { if(question) { @@ -745,7 +745,7 @@ sldns_str2wire_rr_buf_internal(const char* str, uint8_t* rr, size_t* len, ¬_there, &tp)) != 0) return status; /* put ttl, class, type into the rr result */ - if((status=rrinternal_writetype(&strbuf, rr, *len, *dname_len, tp, cl, + if((status=rrinternal_write_typeclassttl(&strbuf, rr, *len, *dname_len, tp, cl, ttl, question)) != 0) return status; /* for a question-RR we are done, no rdata */ @@ -1051,7 +1051,7 @@ int sldns_str2wire_str_buf(const char* str, uint8_t* rd, size_t* len) /* skip length byte */ if(*len < 1) return LDNS_WIREPARSE_ERR_BUFFER_TOO_SMALL; - + /* read characters */ while(sldns_parse_char(&ch, &s)) { if(sl >= 255) -- 2.47.2