diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-14 18:29:27 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2014-07-15 09:53:18 -0400 |
commit | ae2db4e7e868fb89f5053a962a3a43337ddfd4e0 (patch) | |
tree | e5d2f55ac0f3dafbeade700ecb83191b0bf660d0 /src/timesync/timesyncd.h | |
parent | c566ee3253132cc2ec37ed04c5bccbadf8e60c58 (diff) |
timesyncd: add sockaddr_pretty wrapper
Diffstat (limited to 'src/timesync/timesyncd.h')
-rw-r--r-- | src/timesync/timesyncd.h | 4 |
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; |