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
eb0e6a4d
Commit
eb0e6a4d
authored
Oct 25, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve a couple of error messages.
parent
d532867f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
7 deletions
+6
-7
vcc_acl.c
lib/libvcl/vcc_acl.c
+2
-2
vcc_dir_random.c
lib/libvcl/vcc_dir_random.c
+4
-5
No files found.
lib/libvcl/vcc_acl.c
View file @
eb0e6a4d
...
...
@@ -100,7 +100,7 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
if
(
fam
==
PF_INET
&&
ae
->
mask
>
32
)
{
VSB_printf
(
tl
->
sb
,
"Too wide mask (%u) for IPv4 address"
,
ae
->
mask
);
"Too wide mask (%u) for IPv4 address
\n
"
,
ae
->
mask
);
if
(
ae
->
t_mask
!=
NULL
)
vcc_ErrWhere
(
tl
,
ae
->
t_mask
);
else
...
...
@@ -109,7 +109,7 @@ vcc_acl_add_entry(struct vcc *tl, const struct acl_e *ae, int l,
}
if
(
fam
==
PF_INET6
&&
ae
->
mask
>
128
)
{
VSB_printf
(
tl
->
sb
,
"Too wide mask (%u) for IPv6 address"
,
ae
->
mask
);
"Too wide mask (%u) for IPv6 address
\n
"
,
ae
->
mask
);
vcc_ErrWhere
(
tl
,
ae
->
t_mask
);
return
;
}
...
...
lib/libvcl/vcc_dir_random.c
View file @
eb0e6a4d
...
...
@@ -38,7 +38,7 @@
void
vcc_ParseRandomDirector
(
struct
vcc
*
tl
)
{
struct
token
*
t_field
,
*
t_be
;
struct
token
*
t_field
,
*
t_be
,
*
t_x
;
int
nelem
;
struct
fld_spec
*
fs
,
*
mfs
;
unsigned
u
,
retries
;
...
...
@@ -86,15 +86,14 @@ vcc_ParseRandomDirector(struct vcc *tl)
first
,
p
);
}
else
if
(
vcc_IdIs
(
t_field
,
"weight"
))
{
ExpectErr
(
tl
,
CNUM
);
t_x
=
tl
->
t
;
u
=
vcc_UintVal
(
tl
);
ERRCHK
(
tl
);
if
(
u
==
0
)
{
VSB_printf
(
tl
->
sb
,
"The .weight must be higher "
"than zero."
);
vcc_ErrToken
(
tl
,
tl
->
t
);
VSB_printf
(
tl
->
sb
,
" at
\n
"
);
vcc_ErrWhere
(
tl
,
tl
->
t
);
"than zero.
\n
"
);
vcc_ErrWhere
(
tl
,
t_x
);
return
;
}
Fc
(
tl
,
0
,
"%s .weight = %u"
,
first
,
u
);
...
...
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