summaryrefslogtreecommitdiff
path: root/src/timesync/timesyncd.h
diff options
context:
space:
mode:
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;