summaryrefslogtreecommitdiffstats
path: root/src/timesync/timesyncd.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 00:29:27 +0200
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 15:53:18 +0200
commitae2db4e7e868fb89f5053a962a3a43337ddfd4e0 (patch)
treee5d2f55ac0f3dafbeade700ecb83191b0bf660d0 /src/timesync/timesyncd.h
parenttimesyncd: only listen to clock changes when connected (diff)
downloadsystemd-ae2db4e7e868fb89f5053a962a3a43337ddfd4e0.tar.xz
systemd-ae2db4e7e868fb89f5053a962a3a43337ddfd4e0.zip
timesyncd: add sockaddr_pretty wrapper
Diffstat (limited to '')
-rw-r--r--src/timesync/timesyncd.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/timesync/timesyncd.h b/src/timesync/timesyncd.h
index 4afe4b9f5b..52cca6d1ed 100644
--- a/src/timesync/timesyncd.h
+++ b/src/timesync/timesyncd.h
@@ -42,6 +42,10 @@ struct ServerName {
LIST_FIELDS(ServerName, names);
};
+static inline int server_address_pretty(ServerAddress *a, char **pretty) {
+ return sockaddr_pretty(&a->sockaddr.sa, a->socklen, true, pretty);
+}
+
struct Manager {
sd_event *event;
sd_resolve *resolve;