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
91abe0a5
Commit
91abe0a5
authored
Jul 08, 2021
by
Dridi Boukelmoune
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sess: Polish HTC_RxPipeline()
All call sites pass a non-null char pointer.
parent
28902ab9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
cache_session.c
bin/varnishd/cache/cache_session.c
+4
-4
cache_varnishd.h
bin/varnishd/cache/cache_varnishd.h
+1
-1
No files found.
bin/varnishd/cache/cache_session.c
View file @
91abe0a5
...
...
@@ -244,16 +244,16 @@ HTC_RxInit(struct http_conn *htc, struct ws *ws)
}
void
HTC_RxPipeline
(
struct
http_conn
*
htc
,
void
*
p
)
HTC_RxPipeline
(
struct
http_conn
*
htc
,
char
*
p
)
{
CHECK_OBJ_NOTNULL
(
htc
,
HTTP_CONN_MAGIC
);
if
(
p
==
NULL
||
(
char
*
)
p
==
htc
->
rxbuf_e
)
{
assert
(
p
>=
htc
->
rxbuf_b
);
assert
(
p
<=
htc
->
rxbuf_e
);
if
(
p
==
htc
->
rxbuf_e
)
{
htc
->
pipeline_b
=
NULL
;
htc
->
pipeline_e
=
NULL
;
}
else
{
assert
((
char
*
)
p
>=
htc
->
rxbuf_b
);
assert
((
char
*
)
p
<
htc
->
rxbuf_e
);
htc
->
pipeline_b
=
p
;
htc
->
pipeline_e
=
htc
->
rxbuf_e
;
}
...
...
bin/varnishd/cache/cache_varnishd.h
View file @
91abe0a5
...
...
@@ -432,7 +432,7 @@ void SES_Rel(struct sess *sp);
const
char
*
HTC_Status
(
enum
htc_status_e
);
void
HTC_RxInit
(
struct
http_conn
*
htc
,
struct
ws
*
ws
);
void
HTC_RxPipeline
(
struct
http_conn
*
htc
,
void
*
);
void
HTC_RxPipeline
(
struct
http_conn
*
htc
,
char
*
);
enum
htc_status_e
HTC_RxStuff
(
struct
http_conn
*
,
htc_complete_f
*
,
vtim_real
*
t1
,
vtim_real
*
t2
,
vtim_real
ti
,
vtim_real
tn
,
vtim_dur
td
,
int
maxbytes
);
...
...
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