Commit a9ebb3b5 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Make VSS_parse() static, as it is no longer, and should no longer

be used outside vss.c
parent d8663956
......@@ -30,8 +30,6 @@
struct vss_addr;
struct suckaddr;
const char *VSS_parse(char *str, char **addr, char **port);
typedef int resolved_f(void *priv, const struct suckaddr *);
int VSS_resolver(const char *addr, const char *def_port, resolved_f *func,
void *priv, const char **err);
......
......@@ -72,8 +72,8 @@ struct vss_addr {
* See also RFC5952
*/
const char *
VSS_parse(char *str, char **addr, char **port)
static const char *
vss_parse(char *str, char **addr, char **port)
{
char *p;
......@@ -126,7 +126,7 @@ VSS_resolver(const char *addr, const char *def_port, resolved_f *func,
*err = NULL;
h = strdup(addr);
AN(h);
*err = VSS_parse(h, &hop, &adp);
*err = vss_parse(h, &hop, &adp);
if (*err != NULL) {
free(h);
return (-1);
......@@ -189,7 +189,7 @@ VSS_resolve(const char *addr, const char *port, struct vss_addr ***vap)
h = strdup(addr);
AN(h);
if (VSS_parse(h, &hop, &adp) != NULL) {
if (vss_parse(h, &hop, &adp) != NULL) {
free(h);
return (0);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment