projects
/
tinc
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove global variable "now".
[tinc]
/
src
/
meta.c
diff --git
a/src/meta.c
b/src/meta.c
index
3e75045
..
b754626
100644
(file)
--- a/
src/meta.c
+++ b/
src/meta.c
@@
-45,7
+45,6
@@
bool send_meta(connection_t *c, const char *buffer, int length)
c->name, c->hostname);
if(!c->outbuflen) {
c->name, c->hostname);
if(!c->outbuflen) {
- c->last_flushed_time = now;
if(event_add(&c->outev, NULL) < 0) {
logger(LOG_EMERG, _("event_add failed: %s"), strerror(errno));
abort();
if(event_add(&c->outev, NULL) < 0) {
logger(LOG_EMERG, _("event_add failed: %s"), strerror(errno));
abort();
@@
-239,7
+238,7
@@
bool receive_meta(connection_t *c)
return false;
}
return false;
}
- c->last_ping_time =
now
;
+ c->last_ping_time =
time(NULL)
;
return true;
}
return true;
}