diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2024-01-16 11:50:32 +1100 |
---|---|---|
committer | Stefano Brivio <sbrivio@redhat.com> | 2024-01-22 23:35:10 +0100 |
commit | 8563e7c870e139baf14ef00b26cdc7db4884246c (patch) | |
tree | 766e432a1bfa21c863eef434e0a9a68ffabec856 /tcp.c | |
parent | 17bbab1c97516048fdcc6c2e6c8efc524e56e71e (diff) | |
download | passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.gz passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.bz2 passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.lz passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.xz passt-8563e7c870e139baf14ef00b26cdc7db4884246c.tar.zst passt-8563e7c870e139baf14ef00b26cdc7db4884246c.zip |
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>
Diffstat (limited to 'tcp.c')
-rw-r--r-- | tcp.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |