diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-10 11:47:29 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2004-11-10 11:47:29 +0000 |
commit | 84a0d4992eb0833fe2e4fb013d06578958d09f49 (patch) | |
tree | 48272926572d14c8130c55d4f36517caff8e33cb /usr.sbin/ntpd/client.c | |
parent | edda7ecb7d4e792dea3d7994cea3ec55344d9321 (diff) |
ntp_adjtime() -> priv_adjtime()
ntp_settime() -> priv_settime()
ntp_host_dns() -> priv_host_dns()
Diffstat (limited to 'usr.sbin/ntpd/client.c')
-rw-r--r-- | usr.sbin/ntpd/client.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/ntpd/client.c b/usr.sbin/ntpd/client.c index 4c19e421a0a..178864e14e1 100644 --- a/usr.sbin/ntpd/client.c +++ b/usr.sbin/ntpd/client.c @@ -1,4 +1,4 @@ -/* $OpenBSD: client.c,v 1.44 2004/11/05 23:39:46 dtucker Exp $ */ +/* $OpenBSD: client.c,v 1.45 2004/11/10 11:47:28 henning Exp $ */ /* * Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org> @@ -96,7 +96,7 @@ client_nextaddr(struct ntp_peer *p) p->query->fd = -1; if (p->addr_head.a == NULL) { - ntp_host_dns(p->addr_head.name, p->id); + priv_host_dns(p->addr_head.name, p->id); return (-1); } @@ -266,7 +266,7 @@ client_dispatch(struct ntp_peer *p, u_int8_t settime) client_update(p); if (settime) - ntp_settime(p->reply[p->shift].offset); + priv_settime(p->reply[p->shift].offset); log_debug("reply from %s: offset %f delay %f, " "next query %ds", log_sockaddr((struct sockaddr *)&p->addr->ss), @@ -307,7 +307,7 @@ client_update(struct ntp_peer *p) return (-1); memcpy(&p->update, &p->reply[best], sizeof(p->update)); - ntp_adjtime(); + priv_adjtime(); for (i = 0; i < OFFSET_ARRAY_SIZE; i++) if (p->reply[i].rcvd <= p->reply[best].rcvd) |