projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix -Wsign-compare error in keys.c
[tinc]
/
src
/
autoconnect.c
diff --git
a/src/autoconnect.c
b/src/autoconnect.c
index
d25d65e
..
d819ee4
100644
(file)
--- a/
src/autoconnect.c
+++ b/
src/autoconnect.c
@@
-80,7
+80,7
@@
static void connect_to_unreachable() {
* are only a few reachable nodes, and many unreachable ones, we're
* going to try harder to connect to them. */
- int r = rand() % node_tree->count;
+
unsigned
int r = rand() % node_tree->count;
for splay_each(node_t, n, node_tree) {
if(r--) {