summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2014-10-24 19:02:30 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2014-10-26 11:42:20 +0000
commita7f55cc47fd1a8c9d6e9e5eea2fc4184bfe7ad1c (patch)
tree13caf4dbe52364271a07488833c525c8f3c7d73f
parent8c5f4afa4747f770d69091b6e6ce0cfdb5c2ff30 (diff)
Make internal function vbuf__append_quoted1035 static
This does not change the library ABI - the only callers are internal. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
-rw-r--r--src/internal.h2
-rw-r--r--src/parse.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/src/internal.h b/src/internal.h
index ad7d4d7..f496fcb 100644
--- a/src/internal.h
+++ b/src/internal.h
@@ -865,8 +865,6 @@ void adns__update_expires(adns_query qu, unsigned long ttl,
* now + ttl.
*/
-int vbuf__append_quoted1035(vbuf *vb, const byte *buf, int len);
-
bool adns__labels_equal(const byte *a, int al, const byte *b, int bl);
/* From event.c: */
diff --git a/src/parse.c b/src/parse.c
index 80b7974..caedf15 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -26,7 +26,7 @@
#include "internal.h"
-int vbuf__append_quoted1035(vbuf *vb, const byte *buf, int len) {
+static int vbuf_append_quoted1035(vbuf *vb, const byte *buf, int len) {
char qbuf[10];
int i, ch;
@@ -142,7 +142,7 @@ adns_status adns__parse_domain_more(findlabel_state *fls, adns_state ads,
if (!adns__vbuf_append(vb,".",1)) return adns_s_nomemory;
}
if (flags & pdf_quoteok) {
- if (!vbuf__append_quoted1035(vb,dgram+labstart,lablen))
+ if (!vbuf_append_quoted1035(vb,dgram+labstart,lablen))
return adns_s_nomemory;
} else {
ch= dgram[labstart];