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
d25080d1
Commit
d25080d1
authored
Dec 14, 2015
by
Federico G. Schwindt
Committed by
Lasse Karstensen
Jan 13, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use VSB_putc for single char ops
parent
b6bc9cd6
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
7 additions
and
7 deletions
+7
-7
cache_ban_build.c
bin/varnishd/cache/cache_ban_build.c
+1
-1
cache_esi_parse.c
bin/varnishd/cache/cache_esi_parse.c
+1
-1
cache_panic.c
bin/varnishd/cache/cache_panic.c
+1
-1
vxp.c
lib/libvarnishapi/vxp.c
+2
-2
vcc_token.c
lib/libvcc/vcc_token.c
+2
-2
No files found.
bin/varnishd/cache/cache_ban_build.c
View file @
d25080d1
...
...
@@ -105,7 +105,7 @@ ban_add_lump(const struct ban_proto *bp, const void *p, uint32_t len)
buf
[
0
]
=
0xff
;
while
(
VSB_len
(
bp
->
vsb
)
&
PALGN
)
VSB_
bcat
(
bp
->
vsb
,
buf
,
1
);
VSB_
putc
(
bp
->
vsb
,
buf
[
0
]
);
vbe32enc
(
buf
,
len
);
VSB_bcat
(
bp
->
vsb
,
buf
,
sizeof
buf
);
VSB_bcat
(
bp
->
vsb
,
p
,
len
);
...
...
bin/varnishd/cache/cache_esi_parse.c
View file @
d25080d1
...
...
@@ -906,7 +906,7 @@ VEP_Parse(struct vep_state *vep, const char *p, size_t l)
while
(
p
<
e
&&
*
p
!=
'>'
&&
*
p
!=
vep
->
attr_delim
&&
(
vep
->
attr_delim
!=
' '
||
!
vct_issp
(
*
p
)))
{
if
(
vep
->
attr_vsb
!=
NULL
)
VSB_
bcat
(
vep
->
attr_vsb
,
p
,
1
);
VSB_
putc
(
vep
->
attr_vsb
,
*
p
);
p
++
;
}
if
(
p
<
e
&&
*
p
==
'>'
)
{
...
...
bin/varnishd/cache/cache_panic.c
View file @
d25080d1
...
...
@@ -526,7 +526,7 @@ pan_ic(const char *func, const char *file, int line, const char *cond,
}
}
VSB_printf
(
pan_vsb
,
"
\n
"
);
VSB_
bcat
(
pan_vsb
,
""
,
1
);
/* NUL termination */
VSB_
putc
(
pan_vsb
,
'\0'
);
/* NUL termination */
if
(
FEATURE
(
FEATURE_NO_COREDUMP
))
exit
(
4
);
...
...
lib/libvarnishapi/vxp.c
View file @
d25080d1
...
...
@@ -82,9 +82,9 @@ vxp_quote(const struct vxp *vxp, const char *b, const char *e, int tokoff)
assert
(
e
<=
vxp
->
e
);
for
(
p
=
vxp
->
b
;
p
<
vxp
->
e
;
p
++
)
{
if
(
isspace
(
*
p
))
VSB_
bcat
(
vxp
->
sb
,
" "
,
1
);
VSB_
putc
(
vxp
->
sb
,
' '
);
else
VSB_
bcat
(
vxp
->
sb
,
p
,
1
);
VSB_
putc
(
vxp
->
sb
,
*
p
);
}
VSB_putc
(
vxp
->
sb
,
'\n'
);
for
(
p
=
vxp
->
b
;
p
<
vxp
->
e
;
p
++
)
{
...
...
lib/libvcc/vcc_token.c
View file @
d25080d1
...
...
@@ -135,13 +135,13 @@ vcc_quoteline(const struct vcc *tl, const char *l, const char *le)
y
&=
~
7
;
y
+=
8
;
while
(
x
<
y
)
{
VSB_
bcat
(
tl
->
sb
,
" "
,
1
);
VSB_
putc
(
tl
->
sb
,
' '
);
x
++
;
}
}
else
{
x
++
;
y
++
;
VSB_
bcat
(
tl
->
sb
,
p
,
1
);
VSB_
putc
(
tl
->
sb
,
*
p
);
}
}
VSB_putc
(
tl
->
sb
,
'\n'
);
...
...
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