summaryrefslogtreecommitdiffstats
path: root/src/timesync
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2022-08-12 16:13:05 +0200
committerDaan De Meyer <daan.j.demeyer@gmail.com>2023-01-08 16:31:15 +0100
commitcc232fa09407eb027db6a3a28451c25dad3ef7aa (patch)
tree8429bfeef6a574ab32991c64b341c17c9f598e1e /src/timesync
parentbasic: Drop memory-util.h include from stdio-util.h (diff)
downloadsystemd-cc232fa09407eb027db6a3a28451c25dad3ef7aa.tar.xz
systemd-cc232fa09407eb027db6a3a28451c25dad3ef7aa.zip
basic: Use statement expressions more in list.h
Let's use statement expressions to return values instead of passing in return arguments to the LIST macros.
Diffstat (limited to 'src/timesync')
-rw-r--r--src/timesync/timesyncd-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timesync/timesyncd-server.c b/src/timesync/timesyncd-server.c
index 3b7d79323f..7aa1551baf 100644
--- a/src/timesync/timesyncd-server.c
+++ b/src/timesync/timesyncd-server.c
@@ -37,7 +37,7 @@ int server_address_new(
memcpy(&a->sockaddr, sockaddr, socklen);
- LIST_FIND_TAIL(addresses, n->addresses, tail);
+ tail = LIST_FIND_TAIL(addresses, n->addresses);
LIST_INSERT_AFTER(addresses, n->addresses, tail, a);
if (ret)