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
702ecb20
Commit
702ecb20
authored
Sep 28, 2008
by
Juliusz Chroboczek
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change costs to be unsigned.
parent
78b3098b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
neighbour.c
neighbour.c
+4
-4
neighbour.h
neighbour.h
+4
-4
No files found.
neighbour.c
View file @
702ecb20
...
...
@@ -256,14 +256,14 @@ reset_txcost(struct neighbour *neigh)
return
0
;
}
int
unsigned
neighbour_txcost
(
struct
neighbour
*
neigh
)
{
reset_txcost
(
neigh
);
return
neigh
->
txcost
;
}
int
unsigned
check_neighbours
()
{
struct
neighbour
*
neigh
;
...
...
@@ -304,7 +304,7 @@ check_neighbours()
return
msecs
;
}
int
unsigned
neighbour_rxcost
(
struct
neighbour
*
neigh
)
{
int
delay
;
...
...
@@ -339,7 +339,7 @@ neighbour_rxcost(struct neighbour *neigh)
}
}
int
unsigned
neighbour_cost
(
struct
neighbour
*
neigh
)
{
int
a
,
b
;
...
...
neighbour.h
View file @
702ecb20
...
...
@@ -50,7 +50,7 @@ struct neighbour *add_neighbour(const unsigned char *id,
const
unsigned
char
*
address
,
struct
network
*
net
);
int
update_neighbour
(
struct
neighbour
*
neigh
,
int
hello
,
int
hello_interval
);
int
check_neighbours
(
void
);
int
neighbour_txcost
(
struct
neighbour
*
neigh
);
int
neighbour_rxcost
(
struct
neighbour
*
neigh
);
int
neighbour_cost
(
struct
neighbour
*
neigh
);
unsigned
check_neighbours
(
void
);
unsigned
neighbour_txcost
(
struct
neighbour
*
neigh
);
unsigned
neighbour_rxcost
(
struct
neighbour
*
neigh
);
unsigned
neighbour_cost
(
struct
neighbour
*
neigh
);
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