Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libvmod-selector
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
uplex-varnish
libvmod-selector
Commits
99818aae
Commit
99818aae
authored
Jun 24, 2018
by
Geoff Simmons
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor DRY tweak.
parent
7f187041
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
5 deletions
+1
-5
patricia.c
src/patricia.c
+1
-5
No files found.
src/patricia.c
View file @
99818aae
...
...
@@ -117,17 +117,13 @@ y_dup(struct pt_y *y0, unsigned short len)
assert
(
len
<
y0
->
len
);
errno
=
0
;
ALLOC_OBJ
(
y
,
PT_Y_MAGIC
);
y
=
y_alloc
(
y0
->
idx
,
y0
->
off
+
len
,
y0
->
len
-
len
);
if
(
y
==
NULL
)
return
(
NULL
);
y
->
leaf
[
0
]
=
y0
->
leaf
[
0
];
y
->
leaf
[
1
]
=
y0
->
leaf
[
1
];
y
->
bitmask
=
y0
->
bitmask
;
y
->
idx
=
y0
->
idx
;
y
->
off
=
y0
->
off
+
len
;
y
->
len
=
y0
->
len
-
len
;
return
(
y
);
}
...
...
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