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
f02f714a
Commit
f02f714a
authored
May 15, 2013
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove file reading code until finished, to get rid of compiler warnings
parent
eba8c98e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
16 deletions
+6
-16
varnishlog.c
bin/varnishlog/varnishlog.c
+6
-16
No files found.
bin/varnishlog/varnishlog.c
View file @
f02f714a
...
@@ -81,7 +81,6 @@ main(int argc, char * const *argv)
...
@@ -81,7 +81,6 @@ main(int argc, char * const *argv)
char
optchar
;
char
optchar
;
int
d_opt
=
0
;
int
d_opt
=
0
;
char
*
g_arg
=
NULL
;
char
*
g_arg
=
NULL
;
char
*
r_arg
=
NULL
;
struct
VSL_data
*
vsl
;
struct
VSL_data
*
vsl
;
struct
VSM_data
*
vsm
;
struct
VSM_data
*
vsm
;
...
@@ -108,10 +107,6 @@ main(int argc, char * const *argv)
...
@@ -108,10 +107,6 @@ main(int argc, char * const *argv)
/* Instance name */
/* Instance name */
if
(
VSM_n_Arg
(
vsm
,
optarg
)
>
0
)
if
(
VSM_n_Arg
(
vsm
,
optarg
)
>
0
)
break
;
break
;
case
'r'
:
/* Read from file */
r_arg
=
optarg
;
break
;
default:
default:
if
(
!
VSL_Arg
(
vsl
,
optchar
,
optarg
))
if
(
!
VSL_Arg
(
vsl
,
optchar
,
optarg
))
usage
();
usage
();
...
@@ -132,16 +127,11 @@ main(int argc, char * const *argv)
...
@@ -132,16 +127,11 @@ main(int argc, char * const *argv)
}
}
/* Create cursor */
/* Create cursor */
if
(
r_arg
)
{
/* XXX */
error
(
1
,
"-r not implemented"
);
}
else
{
if
(
VSM_Open
(
vsm
))
if
(
VSM_Open
(
vsm
))
error
(
1
,
"VSM_Open: %s"
,
VSM_Error
(
vsm
));
error
(
1
,
"VSM_Open: %s"
,
VSM_Error
(
vsm
));
if
(
!
(
c
=
VSL_CursorVSM
(
vsl
,
vsm
,
!
d_opt
)))
c
=
VSL_CursorVSM
(
vsl
,
vsm
,
!
d_opt
);
if
(
c
==
NULL
)
error
(
1
,
"VSL_CursorVSM: %s"
,
VSL_Error
(
vsl
));
error
(
1
,
"VSL_CursorVSM: %s"
,
VSL_Error
(
vsl
));
}
AN
(
c
);
/* Create query */
/* Create query */
q
=
VSLQ_New
(
vsl
,
&
c
,
grouping
,
argv
[
optind
]);
q
=
VSLQ_New
(
vsl
,
&
c
,
grouping
,
argv
[
optind
]);
...
@@ -150,7 +140,7 @@ main(int argc, char * const *argv)
...
@@ -150,7 +140,7 @@ main(int argc, char * const *argv)
AZ
(
c
);
AZ
(
c
);
while
(
1
)
{
while
(
1
)
{
while
(
!
r_arg
&&
q
==
NULL
)
{
while
(
q
==
NULL
)
{
VTIM_sleep
(
0
.
1
);
VTIM_sleep
(
0
.
1
);
if
(
VSM_Open
(
vsm
))
{
if
(
VSM_Open
(
vsm
))
{
VSM_ResetError
(
vsm
);
VSM_ResetError
(
vsm
);
...
...
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