From: Florian Obser Date: Mon, 16 Aug 2021 09:27:40 +0000 (+0200) Subject: Make sldns_str2wire_svcparam_buf() static. X-Git-Tag: release-1.14.0rc1~72^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F528%2Fhead;p=thirdparty%2Funbound.git Make sldns_str2wire_svcparam_buf() static. The function is only used in this translation unit and prevents a "no previous prototype" warning. --- diff --git a/sldns/str2wire.c b/sldns/str2wire.c index fbd615cbf..293abf79a 100644 --- a/sldns/str2wire.c +++ b/sldns/str2wire.c @@ -1565,7 +1565,7 @@ sldns_str2wire_svcparam_value(const char *key, size_t key_len, return LDNS_WIREPARSE_ERR_GENERAL; } -int sldns_str2wire_svcparam_buf(const char* str, uint8_t* rd, size_t* rd_len) +static int sldns_str2wire_svcparam_buf(const char* str, uint8_t* rd, size_t* rd_len) { const char* eq_pos; char unescaped_val[LDNS_MAX_RDFLEN];