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
96a7987e
Unverified
Commit
96a7987e
authored
Jun 12, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: Move nexus children init from node_insert to node_new
parent
9015c6d0
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
+2
-3
node.c
src/node.c
+2
-2
vdp_pesi.c
src/vdp_pesi.c
+0
-1
No files found.
src/node.c
View file @
96a7987e
...
@@ -234,6 +234,8 @@ node_new(struct pesi *pesi, enum n_type type, enum n_state state)
...
@@ -234,6 +234,8 @@ node_new(struct pesi *pesi, enum n_type type, enum n_state state)
AN
(
node
);
AN
(
node
);
node
->
type
=
type
;
node
->
type
=
type
;
node
->
state
=
state
;
node
->
state
=
state
;
if
(
type
==
T_NEXUS
)
VSTAILQ_INIT
(
&
node
->
nexus
.
children
);
return
(
node
);
return
(
node
);
}
}
...
@@ -333,8 +335,6 @@ node_insert(const struct bytes_tree *tree, struct node *parent,
...
@@ -333,8 +335,6 @@ node_insert(const struct bytes_tree *tree, struct node *parent,
AZ
(
node
->
parent
);
AZ
(
node
->
parent
);
node
->
parent
=
parent
;
node
->
parent
=
parent
;
if
(
node
->
type
==
T_NEXUS
)
VSTAILQ_INIT
(
&
node
->
nexus
.
children
);
VSTAILQ_INSERT_TAIL
(
&
parent
->
nexus
.
children
,
node
,
sibling
);
VSTAILQ_INSERT_TAIL
(
&
parent
->
nexus
.
children
,
node
,
sibling
);
...
...
src/vdp_pesi.c
View file @
96a7987e
...
@@ -641,7 +641,6 @@ root_node_new(struct pesi *pesi, struct req *req)
...
@@ -641,7 +641,6 @@ root_node_new(struct pesi *pesi, struct req *req)
root_node
->
nexus
.
req
=
req
;
root_node
->
nexus
.
req
=
req
;
root_node
->
nexus
.
gzip
.
magic
=
NEXUS_GZIP_MAGIC
;
root_node
->
nexus
.
gzip
.
magic
=
NEXUS_GZIP_MAGIC
;
root_node
->
nexus
.
npending_private
=
1
;
root_node
->
nexus
.
npending_private
=
1
;
VSTAILQ_INIT
(
&
root_node
->
nexus
.
children
);
return
(
root_node
);
return
(
root_node
);
}
}
...
...
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