diff options
Diffstat (limited to 'usr.sbin/ntpd/util.c')
-rw-r--r-- | usr.sbin/ntpd/util.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/util.c b/usr.sbin/ntpd/util.c index c570c307a23..d837a9e6796 100644 --- a/usr.sbin/ntpd/util.c +++ b/usr.sbin/ntpd/util.c @@ -1,4 +1,4 @@ -/* $OpenBSD: util.c,v 1.27 2023/11/19 10:41:25 claudio Exp $ */ +/* $OpenBSD: util.c,v 1.28 2023/12/20 15:36:36 otto Exp $ */ /* * Copyright (c) 2004 Alexander Guy <alexander.guy@andern.org> @@ -163,6 +163,14 @@ log_sockaddr(struct sockaddr *sa) return (buf); } +const char * +log_ntp_addr(struct ntp_addr *addr) +{ + if (addr == NULL) + return ("(unknown)"); + return log_sockaddr((struct sockaddr *)&addr->ss); +} + pid_t start_child(char *pname, int cfd, int argc, char **argv) { |