Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
babeld
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
babeld
Commits
0442d14a
Commit
0442d14a
authored
Apr 07, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
More tweaks to compare_buffered_updates.
parent
8192eca2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
message.c
message.c
+9
-1
No files found.
message.c
View file @
0442d14a
...
...
@@ -749,7 +749,7 @@ static int
compare_buffered_updates
(
const
void
*
av
,
const
void
*
bv
)
{
const
struct
buffered_update
*
a
=
av
,
*
b
=
bv
;
int
rc
,
v4a
,
v4b
;
int
rc
,
v4a
,
v4b
,
ipa
,
ipb
;
rc
=
memcmp
(
a
->
id
,
b
->
id
,
16
);
if
(
rc
!=
0
)
...
...
@@ -763,6 +763,14 @@ compare_buffered_updates(const void *av, const void *bv)
else
if
(
v4a
<
v4b
)
return
-
1
;
ipa
=
in_prefix
(
a
->
id
,
a
->
prefix
,
a
->
plen
);
ipb
=
in_prefix
(
b
->
id
,
b
->
prefix
,
b
->
plen
);
if
(
ipa
>
ipb
)
return
-
1
;
else
if
(
ipa
<
ipb
)
return
1
;
return
0
;
}
...
...
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