summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Weisgerber <naddy@cvs.openbsd.org>2006-12-28 00:24:28 +0000
committerChristian Weisgerber <naddy@cvs.openbsd.org>2006-12-28 00:24:28 +0000
commit1c35feffbed3fe4c927afc44d517337598504691 (patch)
tree4124332e45cd4ff9aea36571b234c518a32888ed
parent78683882c7da1795ff88a1f90b24fa89251338ea (diff)
forgot a dereference in the previous conversion; ok deraadt@
-rw-r--r--usr.sbin/ntpd/sensors.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/ntpd/sensors.c b/usr.sbin/ntpd/sensors.c
index 5d7f0558586..7057220e4ce 100644
--- a/usr.sbin/ntpd/sensors.c
+++ b/usr.sbin/ntpd/sensors.c
@@ -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>
@@ -81,7 +81,7 @@ sensor_probe(int devid, char *dxname, struct sensor *sensor)
}
strlcpy(dxname, sensordev.xname, MAXDEVNAMLEN);
- slen = sizeof(sensor);
+ slen = sizeof(*sensor);
if (sysctl(mib, 5, sensor, &slen, NULL, 0) == -1) {
if (errno != ENOENT)
log_warn("sensor_probe sysctl");