Browse Source

sensor_byid not needed any more

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

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

@ -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)
{


Loading…
Cancel
Save