diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-28 16:41:41 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2006-05-28 16:41:41 +0000 |
commit | 1fe1beb0ccb78ed31b616e13a6d85961d51274e6 (patch) | |
tree | dc4fa263d7fe131801cde3bbeab21358b1b337f9 /usr.sbin | |
parent | 8fdfc04b97b7a98cf2dd18c77b0c435e3ea39f9c (diff) |
sensor_byid not needed any more
Diffstat (limited to 'usr.sbin')
-rw-r--r-- | usr.sbin/ntpd/sensors.c | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c index e81ff0e9f7a..a8823f367af 100644 --- a/usr.sbin/ntpd/sensors.c +++ b/usr.sbin/ntpd/sensors.c @@ -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> @@ -36,7 +36,6 @@ void sensor_probe(int); void sensor_add(struct sensor *); -struct ntp_sensor *sensor_byid(int); struct ntpd_conf *conf; @@ -118,18 +117,6 @@ sensor_remove(struct ntp_sensor *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 sensor_query(struct ntp_sensor *s) { |