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
fb0d4d2c
Commit
fb0d4d2c
authored
Aug 02, 2019
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
magic pointers no more
parent
76dae2f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
13 deletions
+1
-13
vdp_pesi.c
src/vdp_pesi.c
+1
-13
No files found.
src/vdp_pesi.c
View file @
fb0d4d2c
...
@@ -511,8 +511,7 @@ pesi_buf_bytes(struct req *req, enum vdp_action act, void **priv,
...
@@ -511,8 +511,7 @@ pesi_buf_bytes(struct req *req, enum vdp_action act, void **priv,
tree
=
pesi
->
pesi_tree
->
tree
;
tree
=
pesi
->
pesi_tree
->
tree
;
CHECK_OBJ_NOTNULL
(
tree
,
BYTES_TREE_MAGIC
);
CHECK_OBJ_NOTNULL
(
tree
,
BYTES_TREE_MAGIC
);
// magic pointers in use, so no check for len == 0
if
(
tree
->
retval
||
ptr
==
NULL
||
len
==
0
)
if
(
tree
->
retval
||
ptr
==
NULL
)
return
(
tree
->
retval
);
return
(
tree
->
retval
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
CHECK_OBJ_NOTNULL
(
req
,
REQ_MAGIC
);
...
@@ -534,17 +533,6 @@ pesi_buf_bytes(struct req *req, enum vdp_action act, void **priv,
...
@@ -534,17 +533,6 @@ pesi_buf_bytes(struct req *req, enum vdp_action act, void **priv,
node
->
data
.
len
=
len
;
node
->
data
.
len
=
len
;
node
->
data
.
act
=
act
;
node
->
data
.
act
=
act
;
if
(
len
==
0
)
{
// may be a magic pointer
AZ
(
node
->
data
.
st
);
node
->
data
.
ptr
=
ptr
;
node_insert
(
tree
,
parent
,
node
);
VSLdbg
(
req
,
"bytes_add: exit len == 0"
);
return
(
tree
->
retval
);
}
/*
/*
* non-api knowledge from VDP_DeliverObj()
* non-api knowledge from VDP_DeliverObj()
* final = req->objcore->flags & (OC_F_PRIVATE | OC_F_HFM | OC_F_HFP);
* final = req->objcore->flags & (OC_F_PRIVATE | OC_F_HFM | OC_F_HFP);
...
...
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