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
e74a5a03
Commit
e74a5a03
authored
Dec 15, 2012
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Constify VSB_len() and VSB_data()
parent
801f3a62
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
vsb.h
include/vsb.h
+2
-2
vsb.c
lib/libvarnish/vsb.c
+4
-4
No files found.
include/vsb.h
View file @
e74a5a03
...
...
@@ -76,8 +76,8 @@ int VSB_putc(struct vsb *, int);
int
VSB_trim
(
struct
vsb
*
);
int
VSB_error
(
const
struct
vsb
*
);
int
VSB_finish
(
struct
vsb
*
);
char
*
VSB_data
(
struct
vsb
*
);
ssize_t
VSB_len
(
struct
vsb
*
);
char
*
VSB_data
(
const
struct
vsb
*
);
ssize_t
VSB_len
(
const
struct
vsb
*
);
int
VSB_done
(
const
struct
vsb
*
);
void
VSB_delete
(
struct
vsb
*
);
void
VSB_quote
(
struct
vsb
*
s
,
const
char
*
p
,
int
len
,
int
how
);
...
...
lib/libvarnish/vsb.c
View file @
e74a5a03
...
...
@@ -77,7 +77,7 @@ __FBSDID("$FreeBSD: head/sys/kern/subr_vsb.c 222004 2011-05-17 06:36:32Z phk $")
*/
#if !defined(NDEBUG)
static
void
_assert_VSB_integrity
(
const
char
*
fun
,
struct
vsb
*
s
)
_assert_VSB_integrity
(
const
char
*
fun
,
const
struct
vsb
*
s
)
{
(
void
)
fun
;
...
...
@@ -93,7 +93,7 @@ _assert_VSB_integrity(const char *fun, struct vsb *s)
}
static
void
_assert_VSB_state
(
const
char
*
fun
,
struct
vsb
*
s
,
int
state
)
_assert_VSB_state
(
const
char
*
fun
,
const
struct
vsb
*
s
,
int
state
)
{
(
void
)
fun
;
...
...
@@ -490,7 +490,7 @@ VSB_finish(struct vsb *s)
* Return a pointer to the vsb data.
*/
char
*
VSB_data
(
struct
vsb
*
s
)
VSB_data
(
const
struct
vsb
*
s
)
{
assert_VSB_integrity
(
s
);
...
...
@@ -503,7 +503,7 @@ VSB_data(struct vsb *s)
* Return the length of the vsb data.
*/
ssize_t
VSB_len
(
struct
vsb
*
s
)
VSB_len
(
const
struct
vsb
*
s
)
{
assert_VSB_integrity
(
s
);
...
...
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