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
b005fca8
Commit
b005fca8
authored
Mar 31, 2014
by
Martin Blix Grydeland
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't use acct as variable name
This triggers 'shadows global' build errors.
parent
5473860f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
cache_backend_cfg.c
bin/varnishd/cache/cache_backend_cfg.c
+5
-5
No files found.
bin/varnishd/cache/cache_backend_cfg.c
View file @
b005fca8
...
...
@@ -97,7 +97,7 @@ VBE_Poll(void)
*/
void
VBE_DropRefLocked
(
struct
backend
*
b
,
const
struct
acct_bereq
*
acct
)
VBE_DropRefLocked
(
struct
backend
*
b
,
const
struct
acct_bereq
*
acct
_bereq
)
{
int
i
;
struct
vbc
*
vbe
,
*
vbe2
;
...
...
@@ -105,9 +105,9 @@ VBE_DropRefLocked(struct backend *b, const struct acct_bereq *acct)
CHECK_OBJ_NOTNULL
(
b
,
BACKEND_MAGIC
);
assert
(
b
->
refcount
>
0
);
if
(
acct
!=
NULL
)
{
if
(
acct
_bereq
!=
NULL
)
{
#define ACCT(foo) \
b->vsc->foo += acct->foo;
b->vsc->foo += acct
_bereq
->foo;
#include "tbl/acct_fields_bereq.h"
#undef ACCT
}
...
...
@@ -142,7 +142,7 @@ VBE_DropRefVcl(struct backend *b)
}
void
VBE_DropRefConn
(
struct
backend
*
b
,
const
struct
acct_bereq
*
acct
)
VBE_DropRefConn
(
struct
backend
*
b
,
const
struct
acct_bereq
*
acct
_bereq
)
{
CHECK_OBJ_NOTNULL
(
b
,
BACKEND_MAGIC
);
...
...
@@ -150,7 +150,7 @@ VBE_DropRefConn(struct backend *b, const struct acct_bereq *acct)
Lck_Lock
(
&
b
->
mtx
);
assert
(
b
->
n_conn
>
0
);
b
->
n_conn
--
;
VBE_DropRefLocked
(
b
,
acct
);
VBE_DropRefLocked
(
b
,
acct
_bereq
);
}
/*--------------------------------------------------------------------
...
...
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