mirror of
https://passt.top/passt
synced 2025-06-12 02:25:34 +02:00
treewide: Standardise on 'now' for current timestamp variables
In a number of places we pass around a struct timespec representing the (more or less) current time. Sometimes we call it 'now', and sometimes we call it 'ts'. Standardise on the more informative 'now'. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
This commit is contained in:
parent
17bbab1c97
commit
8563e7c870
7 changed files with 37 additions and 37 deletions
6
tcp.c
6
tcp.c
|
@ -3181,13 +3181,13 @@ static int tcp_port_rebind_outbound(void *arg)
|
|||
/**
|
||||
* tcp_timer() - Periodic tasks: port detection, closed connections, pool refill
|
||||
* @c: Execution context
|
||||
* @ts: Unused
|
||||
* @now: Current timestamp
|
||||
*/
|
||||
void tcp_timer(struct ctx *c, const struct timespec *ts)
|
||||
void tcp_timer(struct ctx *c, const struct timespec *now)
|
||||
{
|
||||
union flow *flow;
|
||||
|
||||
(void)ts;
|
||||
(void)now;
|
||||
|
||||
if (c->mode == MODE_PASTA) {
|
||||
if (c->tcp.fwd_out.mode == FWD_AUTO) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue