diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-11-08 08:41:16 +0100 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2023-11-13 13:27:07 +0100 |
commit | fa5a025167eb861b30d384d3dc293b71914aa006 (patch) | |
tree | d7c565b9db8daf6ba450b61edf64863a71dbd5c9 /src/libsystemd-network/sd-lldp-rx.c | |
parent | Merge pull request #29990 from Flowdalic/memory-zswap-current (diff) | |
download | systemd-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.c | 2 |
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; |