Remove global variable "now".
[tinc] / src / protocol_misc.c
index 52e97e5..ca1dc31 100644 (file)
@@ -116,7 +116,7 @@ bool send_ping(connection_t *c)
        cp();
 
        c->status.pinged = true;
-       c->last_ping_time = now;
+       c->last_ping_time = time(NULL);
 
        return send_request(c, "%d", PING);
 }