|
@ -1,4 +1,4 @@ |
|
|
/* $OpenBSD: sensors.c,v 1.10 2006/05/28 16:40:07 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* $OpenBSD: sensors.c,v 1.11 2006/05/28 16:41:40 henning Exp $ */ |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org> |
|
|
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org> |
|
@ -36,7 +36,6 @@ |
|
|
|
|
|
|
|
|
void sensor_probe(int); |
|
|
void sensor_probe(int); |
|
|
void sensor_add(struct sensor *); |
|
|
void sensor_add(struct sensor *); |
|
|
struct ntp_sensor *sensor_byid(int); |
|
|
|
|
|
|
|
|
|
|
|
struct ntpd_conf *conf; |
|
|
struct ntpd_conf *conf; |
|
|
|
|
|
|
|
@ -118,18 +117,6 @@ sensor_remove(struct ntp_sensor *s) |
|
|
free(s); |
|
|
free(s); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
struct ntp_sensor * |
|
|
|
|
|
sensor_byid(int id) |
|
|
|
|
|
{ |
|
|
|
|
|
struct ntp_sensor *s; |
|
|
|
|
|
|
|
|
|
|
|
TAILQ_FOREACH(s, &conf->ntp_sensors, entry) |
|
|
|
|
|
if (s->sensorid == id) |
|
|
|
|
|
return(s); |
|
|
|
|
|
|
|
|
|
|
|
return (NULL); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
int |
|
|
int |
|
|
sensor_query(struct ntp_sensor *s) |
|
|
sensor_query(struct ntp_sensor *s) |
|
|
{ |
|
|
{ |
|
|