Browse Source

forgot a dereference in the previous conversion; ok deraadt@

OPENBSD_4_1
naddy 18 years ago
parent
commit
6c7f751ad1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/usr.sbin/ntpd/sensors.c

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

@ -1,4 +1,4 @@
/* $OpenBSD: sensors.c,v 1.27 2006/12/23 17:49:53 deraadt Exp $ */
/* $OpenBSD: sensors.c,v 1.28 2006/12/28 00:24:27 naddy Exp $ */
/* /*
* Copyright (c) 2006 Henning Brauer <henning@openbsd.org> * Copyright (c) 2006 Henning Brauer <henning@openbsd.org>
@ -81,7 +81,7 @@ sensor_probe(int devid, char *dxname, struct sensor *sensor)
} }
strlcpy(dxname, sensordev.xname, MAXDEVNAMLEN); strlcpy(dxname, sensordev.xname, MAXDEVNAMLEN);
slen = sizeof(sensor);
slen = sizeof(*sensor);
if (sysctl(mib, 5, sensor, &slen, NULL, 0) == -1) { if (sysctl(mib, 5, sensor, &slen, NULL, 0) == -1) {
if (errno != ENOENT) if (errno != ENOENT)
log_warn("sensor_probe sysctl"); log_warn("sensor_probe sysctl");


Loading…
Cancel
Save