Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
varnish-cache
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
varnish-cache
Commits
a9ebb3b5
Commit
a9ebb3b5
authored
Mar 11, 2015
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make VSS_parse() static, as it is no longer, and should no longer
be used outside vss.c
parent
d8663956
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
6 deletions
+4
-6
vss.h
include/vss.h
+0
-2
vss.c
lib/libvarnish/vss.c
+4
-4
No files found.
include/vss.h
View file @
a9ebb3b5
...
@@ -30,8 +30,6 @@
...
@@ -30,8 +30,6 @@
struct
vss_addr
;
struct
vss_addr
;
struct
suckaddr
;
struct
suckaddr
;
const
char
*
VSS_parse
(
char
*
str
,
char
**
addr
,
char
**
port
);
typedef
int
resolved_f
(
void
*
priv
,
const
struct
suckaddr
*
);
typedef
int
resolved_f
(
void
*
priv
,
const
struct
suckaddr
*
);
int
VSS_resolver
(
const
char
*
addr
,
const
char
*
def_port
,
resolved_f
*
func
,
int
VSS_resolver
(
const
char
*
addr
,
const
char
*
def_port
,
resolved_f
*
func
,
void
*
priv
,
const
char
**
err
);
void
*
priv
,
const
char
**
err
);
...
...
lib/libvarnish/vss.c
View file @
a9ebb3b5
...
@@ -72,8 +72,8 @@ struct vss_addr {
...
@@ -72,8 +72,8 @@ struct vss_addr {
* See also RFC5952
* See also RFC5952
*/
*/
const
char
*
static
const
char
*
VSS
_parse
(
char
*
str
,
char
**
addr
,
char
**
port
)
vss
_parse
(
char
*
str
,
char
**
addr
,
char
**
port
)
{
{
char
*
p
;
char
*
p
;
...
@@ -126,7 +126,7 @@ VSS_resolver(const char *addr, const char *def_port, resolved_f *func,
...
@@ -126,7 +126,7 @@ VSS_resolver(const char *addr, const char *def_port, resolved_f *func,
*
err
=
NULL
;
*
err
=
NULL
;
h
=
strdup
(
addr
);
h
=
strdup
(
addr
);
AN
(
h
);
AN
(
h
);
*
err
=
VSS
_parse
(
h
,
&
hop
,
&
adp
);
*
err
=
vss
_parse
(
h
,
&
hop
,
&
adp
);
if
(
*
err
!=
NULL
)
{
if
(
*
err
!=
NULL
)
{
free
(
h
);
free
(
h
);
return
(
-
1
);
return
(
-
1
);
...
@@ -189,7 +189,7 @@ VSS_resolve(const char *addr, const char *port, struct vss_addr ***vap)
...
@@ -189,7 +189,7 @@ VSS_resolve(const char *addr, const char *port, struct vss_addr ***vap)
h
=
strdup
(
addr
);
h
=
strdup
(
addr
);
AN
(
h
);
AN
(
h
);
if
(
VSS
_parse
(
h
,
&
hop
,
&
adp
)
!=
NULL
)
{
if
(
vss
_parse
(
h
,
&
hop
,
&
adp
)
!=
NULL
)
{
free
(
h
);
free
(
h
);
return
(
0
);
return
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment