From 1fe1beb0ccb78ed31b616e13a6d85961d51274e6 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Sun, 28 May 2006 16:41:41 +0000 Subject: sensor_byid not needed any more --- usr.sbin/ntpd/sensors.c | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) (limited to 'usr.sbin/ntpd') 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 @@ -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) { -- cgit v1.2.3