summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd/ntp.c
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-05-28 18:47:26 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-05-28 18:47:26 +0000
commitee271e2904f4aa32ea2ecaafc166fdf57d72cb34 (patch)
tree9c4d48ead059640978c87b32168b4ce64e35f357 /usr.sbin/ntpd/ntp.c
parent6c3a3119902ab4d8b8ee50c346f7595059b22fe8 (diff)
let sensor_query handle removals itself
Diffstat (limited to 'usr.sbin/ntpd/ntp.c')
-rw-r--r--usr.sbin/ntpd/ntp.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/ntp.c b/usr.sbin/ntpd/ntp.c
index 7592c210aff..3d1c0c6a417 100644
--- a/usr.sbin/ntpd/ntp.c
+++ b/usr.sbin/ntpd/ntp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ntp.c,v 1.75 2006/05/28 03:23:08 henning Exp $ */
+/* $OpenBSD: ntp.c,v 1.76 2006/05/28 18:47:25 henning Exp $ */
/*
* Copyright (c) 2003, 2004 Henning Brauer <henning@openbsd.org>
@@ -297,8 +297,7 @@ ntp_main(int pipe_prnt[2], struct ntpd_conf *nconf)
for (s = TAILQ_FIRST(&conf->ntp_sensors); s != NULL;
s = next_s) {
next_s = TAILQ_NEXT(s, entry);
- if (sensor_query(s) == -1)
- sensor_remove(s);
+ sensor_query(s);
}
}