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
7cd4e27e
Commit
7cd4e27e
authored
Oct 30, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pointless variable renamings.
parent
3c3049fa
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
route.c
route.c
+5
-5
xroute.c
xroute.c
+5
-5
No files found.
route.c
View file @
7cd4e27e
...
...
@@ -71,13 +71,13 @@ find_installed_route(const unsigned char *prefix, unsigned char plen)
void
flush_route
(
struct
route
*
route
)
{
int
n
;
int
i
;
struct
source
*
src
;
unsigned
oldmetric
;
int
lost
=
0
;
n
=
route
-
routes
;
assert
(
n
>=
0
&&
n
<
numroutes
);
i
=
route
-
routes
;
assert
(
i
>=
0
&&
i
<
numroutes
);
oldmetric
=
route
->
metric
;
...
...
@@ -90,8 +90,8 @@ flush_route(struct route *route)
src
=
route
->
src
;
if
(
n
!=
numroutes
-
1
)
memcpy
(
routes
+
n
,
routes
+
numroutes
-
1
,
sizeof
(
struct
route
));
if
(
i
!=
numroutes
-
1
)
memcpy
(
routes
+
i
,
routes
+
numroutes
-
1
,
sizeof
(
struct
route
));
numroutes
--
;
VALGRIND_MAKE_MEM_UNDEFINED
(
routes
+
numroutes
,
sizeof
(
struct
route
));
...
...
xroute.c
View file @
7cd4e27e
...
...
@@ -57,15 +57,15 @@ find_xroute(const unsigned char *prefix, unsigned char plen)
void
flush_xroute
(
struct
xroute
*
xroute
)
{
int
n
;
int
i
;
n
=
xroute
-
xroutes
;
assert
(
n
>=
0
&&
n
<
numxroutes
);
i
=
xroute
-
xroutes
;
assert
(
i
>=
0
&&
i
<
numxroutes
);
local_notify_xroute
(
xroute
,
LOCAL_FLUSH
);
if
(
n
!=
numxroutes
-
1
)
memcpy
(
xroutes
+
n
,
xroutes
+
numxroutes
-
1
,
sizeof
(
struct
xroute
));
if
(
i
!=
numxroutes
-
1
)
memcpy
(
xroutes
+
i
,
xroutes
+
numxroutes
-
1
,
sizeof
(
struct
xroute
));
numxroutes
--
;
VALGRIND_MAKE_MEM_UNDEFINED
(
xroutes
+
numxroutes
,
sizeof
(
struct
xroute
));
...
...
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