From: Ian Jackson Date: Fri, 24 Oct 2014 18:02:30 +0000 (+0100) Subject: Make internal function vbuf__append_quoted1035 static X-Git-Tag: adns-1.5.0-rc1~15 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=adns.git;a=commitdiff_plain;h=a7f55cc47fd1a8c9d6e9e5eea2fc4184bfe7ad1c Make internal function vbuf__append_quoted1035 static This does not change the library ABI - the only callers are internal. Signed-off-by: Ian Jackson --- 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];