summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntpd.c
diff options
context:
space:
mode:
authorPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-06-06 18:14:26 +0000
committerPierre-Yves Ritschard <pyr@cvs.openbsd.org>2009-06-06 18:14:26 +0000
commit6b79b60efb12868c2d683e7f28e12ff86ad85ed2 (patch)
tree9ee375cda635bd2d509438cf2fbe2e7599355f3d /usr.sbin/ntpd/ntpd.c
parente2b3079a9a2517a38b09f5f5122129e1f694dc8e (diff)
make ntpd imsg-in-a-lib ready as well. extensive testing done, no
behavior change. ok eric@
Diffstat (limited to 'usr.sbin/ntpd/ntpd.c')
-rw-r--r--usr.sbin/ntpd/ntpd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/ntpd.c b/usr.sbin/ntpd/ntpd.c
index 84ef9ad650d..796c6013d8e 100644
--- a/usr.sbin/ntpd/ntpd.c
+++ b/usr.sbin/ntpd/ntpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntpd.c,v 1.65 2009/06/01 23:21:09 henning Exp $ */
+/* $OpenBSD: ntpd.c,v 1.66 2009/06/06 18:14:25 pyr Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -289,7 +289,8 @@ dispatch_imsg(struct ntpd_conf *lconf)
fatalx("invalid IMSG_ADJTIME received");
memcpy(&d, imsg.data, sizeof(d));
n = ntpd_adjtime(d);
- imsg_compose(ibuf, IMSG_ADJTIME, 0, 0, &n, sizeof(n));
+ imsg_compose(ibuf, IMSG_ADJTIME, 0, 0, -1,
+ &n, sizeof(n));
break;
case IMSG_ADJFREQ:
if (imsg.hdr.len != IMSG_HEADER_SIZE + sizeof(d))