Browse Source

hotplug devid will go away in a minute, so don't use it here any longer

OPENBSD_4_0
henning 18 years ago
parent
commit
18724bbfff
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      src/usr.sbin/ntpd/sensors.c

+ 3
- 3
src/usr.sbin/ntpd/sensors.c View File

@ -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> * Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@ -209,8 +209,8 @@ sensor_hotplugevent(int fd)
switch (he.he_type) { switch (he.he_type) {
case HOTPLUG_DEVAT: case HOTPLUG_DEVAT:
if (he.he_devclass == DV_DULL && if (he.he_devclass == DV_DULL &&
he.he_devid > 0)
sensor_probe(he.he_devid);
!strcmp(he.he_devname, "sensor"))
sensor_scan();
break; break;
default: /* ignore */ default: /* ignore */
break; break;


Loading…
Cancel
Save