summaryrefslogtreecommitdiff
path: root/usr.sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2006-05-28 16:40:08 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2006-05-28 16:40:08 +0000
commit16fcf466def5089dbde8379686f948c639a8e3d1 (patch)
tree32750ac1f9677ed4f10f1284d259e254f44ffb95 /usr.sbin
parent638643bdd5ee79b5a3734965400b8ec2ff8323c2 (diff)
hotplug devid will go away in a minute, so don't use it here any longer
Diffstat (limited to 'usr.sbin')
-rw-r--r--usr.sbin/ntpd/sensors.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 39f861cbb72..e81ff0e9f7a 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sensors.c,v 1.9 2006/05/28 16:39:12 henning Exp $ */
+/* $OpenBSD: sensors.c,v 1.10 2006/05/28 16:40:07 henning Exp $ */
/*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@@ -209,8 +209,8 @@ sensor_hotplugevent(int fd)
switch (he.he_type) {
case HOTPLUG_DEVAT:
if (he.he_devclass == DV_DULL &&
- he.he_devid > 0)
- sensor_probe(he.he_devid);
+ !strcmp(he.he_devname, "sensor"))
+ sensor_scan();
break;
default: /* ignore */
break;