From a7f55cc47fd1a8c9d6e9e5eea2fc4184bfe7ad1c Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 24 Oct 2014 19:02:30 +0100 Subject: [PATCH] Make internal function vbuf__append_quoted1035 static This does not change the library ABI - the only callers are internal. Signed-off-by: Ian Jackson --- src/internal.h | 2 -- src/parse.c | 4 ++-- 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]; -- 2.11.0