Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvdp-pesi
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Jobs
Commits
Open sidebar
uplex-varnish
libvdp-pesi
Commits
7f114182
Unverified
Commit
7f114182
authored
Oct 05, 2020
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use WS_VSB interface
parent
3eb553c1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
19 deletions
+6
-19
vmod_pesi.c
src/vmod_pesi.c
+6
-19
No files found.
src/vmod_pesi.c
View file @
7f114182
...
...
@@ -178,30 +178,17 @@ typedef void pesi_filter_list_t(void *, struct vsb *vsb);
static
const
char
*
pesi_filter_on_ws
(
struct
ws
*
ws
,
pesi_filter_list_t
*
func
,
void
*
arg
)
{
unsigned
u
;
struct
vsb
vsb
[
1
];
const
char
*
p
;
AN
(
func
);
AN
(
arg
);
u
=
WS_ReserveAll
(
ws
);
if
(
u
==
0
)
{
WS_Release
(
ws
,
0
);
WS_MarkOverflow
(
ws
);
return
(
NULL
);
}
AN
(
VSB_new
(
vsb
,
ws
->
f
,
u
,
VSB_FIXEDLEN
));
WS_VSB_new
(
vsb
,
ws
);
func
(
arg
,
vsb
);
if
(
VSB_finish
(
vsb
))
{
WS_Release
(
ws
,
0
);
WS_MarkOverflow
(
ws
);
return
(
NULL
);
}
if
(
VSB_len
(
vsb
))
{
WS_Release
(
ws
,
VSB_len
(
vsb
)
+
1
);
return
(
VSB_data
(
vsb
)
+
1
);
}
WS_Release
(
ws
,
0
);
return
(
""
);
p
=
WS_VSB_finish
(
vsb
,
ws
,
NULL
);
if
(
p
==
NULL
)
p
=
""
;
return
(
p
);
}
static
void
v_matchproto_
(
pesi_filter_list_t
)
...
...
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