summaryrefslogtreecommitdiffstats
path: root/src/libsystemd-network/sd-lldp-rx.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-11-08 08:41:16 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2023-11-13 13:27:07 +0100
commitfa5a025167eb861b30d384d3dc293b71914aa006 (patch)
treed7c565b9db8daf6ba450b61edf64863a71dbd5c9 /src/libsystemd-network/sd-lldp-rx.c
parentMerge pull request #29990 from Flowdalic/memory-zswap-current (diff)
downloadsystemd-fa5a025167eb861b30d384d3dc293b71914aa006.tar.xz
systemd-fa5a025167eb861b30d384d3dc293b71914aa006.zip
Rename {dual,triple}_timestamp_get to {dual,triple}_timestamp_now
Those functions take a pointer to a timestamp and return a timestamp pointer, so the reader would be justified to think that those are just getters. Rename them to avoid confusion.
Diffstat (limited to 'src/libsystemd-network/sd-lldp-rx.c')
-rw-r--r--src/libsystemd-network/sd-lldp-rx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd-network/sd-lldp-rx.c b/src/libsystemd-network/sd-lldp-rx.c
index 7e2ffd4eab..2fc9a55323 100644
--- a/src/libsystemd-network/sd-lldp-rx.c
+++ b/src/libsystemd-network/sd-lldp-rx.c
@@ -229,7 +229,7 @@ static int lldp_rx_receive_datagram(sd_event_source *s, int fd, uint32_t revents
if (ioctl(fd, SIOCGSTAMPNS, &ts) >= 0)
triple_timestamp_from_realtime(&n->timestamp, timespec_load(&ts));
else
- triple_timestamp_get(&n->timestamp);
+ triple_timestamp_now(&n->timestamp);
(void) lldp_rx_handle_datagram(lldp_rx, n);
return 0;