projects
/
tinc
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
25bcdad
)
Fix a non-working cast to get rid of a compiler warning.
author
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 15 Apr 2016 10:29:31 +0000
(12:29 +0200)
committer
Guus Sliepen
<guus@tinc-vpn.org>
Fri, 15 Apr 2016 10:29:31 +0000
(12:29 +0200)
src/net.c
patch
|
blob
|
history
diff --git
a/src/net.c
b/src/net.c
index
9094d61
..
c2c5d19
100644
(file)
--- a/
src/net.c
+++ b/
src/net.c
@@
-152,7
+152,7
@@
static void timeout_handler(void *data) {
if(c->edge) {
try_tx(c->node, false);
if(c->status.pinged) {
if(c->edge) {
try_tx(c->node, false);
if(c->status.pinged) {
- logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)
now.tv_sec - c->last_ping_time
);
+ logger(DEBUG_CONNECTIONS, LOG_INFO, "%s (%s) didn't respond to PING in %ld seconds", c->name, c->hostname, (long)
(now.tv_sec - c->last_ping_time)
);
} else if(c->last_ping_time + pinginterval <= now.tv_sec) {
send_ping(c);
continue;
} else if(c->last_ping_time + pinginterval <= now.tv_sec) {
send_ping(c);
continue;