diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-06-01 04:44:24 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-06-01 04:44:24 +0000 |
commit | 264eaf0f6fe86440d621080f4273753e496c3c6c (patch) | |
tree | 6e5ec43aacf465f0750aeb8259fec0e38be83aab /usr.sbin/ntpd/sensors.c | |
parent | 94569be7ba92741db312e075ae3c63347230e0d0 (diff) |
do not use /dev/hotplug for now, only one reader supported yet
Diffstat (limited to 'usr.sbin/ntpd/sensors.c')
-rw-r--r-- | usr.sbin/ntpd/sensors.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c index 53fc64f7506..a9d40493a28 100644 --- a/usr.sbin/ntpd/sensors.c +++ b/usr.sbin/ntpd/sensors.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sensors.c,v 1.16 2006/05/29 05:20:42 henning Exp $ */ +/* $OpenBSD: sensors.c,v 1.17 2006/06/01 04:44:23 henning Exp $ */ /* * Copyright (c) 2006 Henning Brauer <henning@openbsd.org> @@ -102,6 +102,7 @@ sensor_add(struct sensor *sensor) s->next = time(NULL); s->weight = cs->weight; + s->priority = cs->priority; if ((s->device = strdup(sensor->device)) == NULL) fatal("sensor_add strdup"); s->sensorid = sensor->num; @@ -173,6 +174,7 @@ sensor_query(struct ntp_sensor *s) int sensor_hotplugfd(void) { +#ifdef notyet int fd, flags; if ((fd = open(_PATH_DEV_HOTPLUG, O_RDONLY, 0)) == -1) { @@ -187,6 +189,9 @@ sensor_hotplugfd(void) fatal("fnctl F_SETFL"); return (fd); +#else + return (-1); +#endif } void |