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
bbed74ff
Unverified
Commit
bbed74ff
authored
Jun 12, 2023
by
Nils Goroll
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor: node_alloc() always gets called with a pesi argument
parent
377ab450
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
node.c
src/node.c
+3
-2
No files found.
src/node.c
View file @
bbed74ff
...
...
@@ -204,8 +204,9 @@ node_alloc(struct pesi *pesi)
struct
node
*
node
;
unsigned
sz
;
if
(
pesi
!=
NULL
&&
(
node
=
VSTAILQ_FIRST
(
&
pesi
->
nodestock
))
!=
NULL
)
{
AN
(
pesi
);
node
=
VSTAILQ_FIRST
(
&
pesi
->
nodestock
);
if
(
node
!=
NULL
)
{
VSTAILQ_REMOVE_HEAD
(
&
pesi
->
nodestock
,
sibling
);
VSTAILQ_NEXT
(
node
,
sibling
)
=
NULL
;
CHECK_OBJ
(
node
,
NODE_MAGIC
);
...
...
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