summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:21:26 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-09-15 19:21:26 +0000
commit078fd8953f1ccce51c0026d3be83e90002feeb5c (patch)
tree6b611c60bb46d4bd21902e3ebd7ccce87d0486b8 /usr.sbin/ntpd/ntp.c
parentcd4ff5e43c31c11a0c2f117b61c9560e773ac5d1 (diff)
imsg framework cleanup:
-kill the _pid flavors of imsg_create and imsg_compose, and just add pid as argument to those -use imsg_create in imsg_compose instead of duplicating code -check for datalen overflow
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r--usr.sbin/ntpd/ntp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 27318e09828..47828af9155 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.30 2004/09/15 19:14:11 henning Exp $ */
+/* $OpenBSD: ntp.c,v 1.31 2004/09/15 19:21:25 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -354,7 +354,7 @@ ntp_adjtime(void)
if (offset_cnt > 0) {
offset_median /= offset_cnt;
- imsg_compose(ibuf_main, IMSG_ADJTIME, 0,
+ imsg_compose(ibuf_main, IMSG_ADJTIME, 0, 0,
&offset_median, sizeof(offset_median));
conf->status.reftime = gettime();
@@ -371,5 +371,5 @@ ntp_host_dns(char *name, u_int32_t peerid)
u_int16_t dlen;
dlen = strlen(name) + 1;
- imsg_compose(ibuf_main, IMSG_HOST_DNS, peerid, name, dlen);
+ imsg_compose(ibuf_main, IMSG_HOST_DNS, peerid, 0, name, dlen);
}