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
607b7af7
Commit
607b7af7
authored
Apr 28, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update varnishadm to use new api
parent
4b3dd535
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
Makefile.am
bin/Makefile.am
+1
-1
varnishadm.c
bin/varnishadm/varnishadm.c
+10
-7
No files found.
bin/Makefile.am
View file @
607b7af7
...
...
@@ -3,7 +3,7 @@
# Disabling building of the tools while api is in flux
#SUBDIRS = varnishadm varnishd varnishlog varnishncsa varnishreplay varnishtest
SUBDIRS
=
varnishd varnishlog
SUBDIRS
=
varnish
adm varnish
d varnishlog
if
HAVE_CURSES
#SUBDIRS += varnishhist varnishstat varnishtop
...
...
bin/varnishadm/varnishadm.c
View file @
607b7af7
...
...
@@ -326,26 +326,29 @@ n_arg_sock(const char *n_arg)
{
char
*
T_arg
=
NULL
,
*
T_start
=
NULL
;
char
*
S_arg
=
NULL
;
struct
VSM_data
*
vs
d
;
struct
VSM_data
*
vs
m
;
char
*
p
;
int
sock
;
struct
VSM_fantom
vt
;
vsd
=
VSM_New
();
assert
(
VSL_Arg
(
vsd
,
'n'
,
n_arg
));
if
(
VSM_Open
(
vsd
))
{
fprintf
(
stderr
,
"%s
\n
"
,
VSM_Error
(
vsd
));
vsm
=
VSM_New
();
if
(
VSM_n_Arg
(
vsm
,
n_arg
)
<
0
)
{
fprintf
(
stderr
,
"%s
\n
"
,
VSM_Error
(
vsm
));
return
(
-
1
);
}
if
(
VSM_Open
(
vsm
))
{
fprintf
(
stderr
,
"%s
\n
"
,
VSM_Error
(
vsm
));
return
(
-
1
);
}
if
(
!
VSM_Get
(
vs
d
,
&
vt
,
"Arg"
,
"-T"
,
""
))
{
if
(
!
VSM_Get
(
vs
m
,
&
vt
,
"Arg"
,
"-T"
,
""
))
{
fprintf
(
stderr
,
"No -T arg in shared memory
\n
"
);
return
(
-
1
);
}
AN
(
vt
.
b
);
T_start
=
T_arg
=
strdup
(
vt
.
b
);
if
(
VSM_Get
(
vs
d
,
&
vt
,
"Arg"
,
"-S"
,
""
))
{
if
(
VSM_Get
(
vs
m
,
&
vt
,
"Arg"
,
"-S"
,
""
))
{
AN
(
vt
.
b
);
S_arg
=
strdup
(
vt
.
b
);
}
...
...
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