summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd.h
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-14 18:29:27 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2014-07-15 09:53:18 -0400
commitae2db4e7e868fb89f5053a962a3a43337ddfd4e0 (patch)
treee5d2f55ac0f3dafbeade700ecb83191b0bf660d0 /src/timesync/timesyncd.h
parentc566ee3253132cc2ec37ed04c5bccbadf8e60c58 (diff)
timesyncd: add sockaddr_pretty wrapper
Diffstat (limited to 'src/timesync/timesyncd.h')
-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;