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
Show 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)
...
@@ -71,13 +71,13 @@ find_installed_route(const unsigned char *prefix, unsigned char plen)
void
void
flush_route
(
struct
route
*
route
)
flush_route
(
struct
route
*
route
)
{
{
int
n
;
int
i
;
struct
source
*
src
;
struct
source
*
src
;
unsigned
oldmetric
;
unsigned
oldmetric
;
int
lost
=
0
;
int
lost
=
0
;
n
=
route
-
routes
;
i
=
route
-
routes
;
assert
(
n
>=
0
&&
n
<
numroutes
);
assert
(
i
>=
0
&&
i
<
numroutes
);
oldmetric
=
route
->
metric
;
oldmetric
=
route
->
metric
;
...
@@ -90,8 +90,8 @@ flush_route(struct route *route)
...
@@ -90,8 +90,8 @@ flush_route(struct route *route)
src
=
route
->
src
;
src
=
route
->
src
;
if
(
n
!=
numroutes
-
1
)
if
(
i
!=
numroutes
-
1
)
memcpy
(
routes
+
n
,
routes
+
numroutes
-
1
,
sizeof
(
struct
route
));
memcpy
(
routes
+
i
,
routes
+
numroutes
-
1
,
sizeof
(
struct
route
));
numroutes
--
;
numroutes
--
;
VALGRIND_MAKE_MEM_UNDEFINED
(
routes
+
numroutes
,
sizeof
(
struct
route
));
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)
...
@@ -57,15 +57,15 @@ find_xroute(const unsigned char *prefix, unsigned char plen)
void
void
flush_xroute
(
struct
xroute
*
xroute
)
flush_xroute
(
struct
xroute
*
xroute
)
{
{
int
n
;
int
i
;
n
=
xroute
-
xroutes
;
i
=
xroute
-
xroutes
;
assert
(
n
>=
0
&&
n
<
numxroutes
);
assert
(
i
>=
0
&&
i
<
numxroutes
);
local_notify_xroute
(
xroute
,
LOCAL_FLUSH
);
local_notify_xroute
(
xroute
,
LOCAL_FLUSH
);
if
(
n
!=
numxroutes
-
1
)
if
(
i
!=
numxroutes
-
1
)
memcpy
(
xroutes
+
n
,
xroutes
+
numxroutes
-
1
,
sizeof
(
struct
xroute
));
memcpy
(
xroutes
+
i
,
xroutes
+
numxroutes
-
1
,
sizeof
(
struct
xroute
));
numxroutes
--
;
numxroutes
--
;
VALGRIND_MAKE_MEM_UNDEFINED
(
xroutes
+
numxroutes
,
sizeof
(
struct
xroute
));
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