summaryrefslogtreecommitdiff
path: root/usr.sbin/ntpd
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-05-28 16:39:13 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-05-28 16:39:13 +0000
commit638643bdd5ee79b5a3734965400b8ec2ff8323c2 (patch)
tree9436b25ded7018f6460dcd0bbae651016981969c /usr.sbin/ntpd
parentedd99b9e84b8aff243bfe5bd74269d5227192aff (diff)
do not bother with rmeoval events, we remove sensors whoch vanished or
are not a timedelta sensor any more on query on the fly anyway
Diffstat (limited to 'usr.sbin/ntpd')
-rw-r--r--usr.sbin/ntpd/sensors.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 32b8607a0ee..39f861cbb72 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.8 2006/05/28 03:23:08 henning Exp $ */
+/* $OpenBSD: sensors.c,v 1.9 2006/05/28 16:39:12 henning Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -212,16 +212,6 @@ sensor_hotplugevent(int fd)
he.he_devid > 0)
sensor_probe(he.he_devid);
break;
- case HOTPLUG_DEVDT:
- if (he.he_devclass == DV_DULL &&
- he.he_devid > 0) {
- struct ntp_sensor *s;
-
- s = sensor_byid(he.he_devid);
- if (s != NULL)
- sensor_remove(s);
- }
- break;
default: /* ignore */
break;
}