summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorsthen <sthen@openbsd.org>2011-07-21 01:03:30 +0000
committersthen <sthen@openbsd.org>2011-07-21 01:03:30 +0000
commit2ee9b4b124b3534943f13102dc53f5502b86ebd2 (patch)
treec0d6360c7caf689cd9e3c6553090dd9ec6daf441 /lib/libc
parent- Make constants const. (diff)
downloadwireguard-openbsd-2ee9b4b124b3534943f13102dc53f5502b86ebd2.tar.xz
wireguard-openbsd-2ee9b4b124b3534943f13102dc53f5502b86ebd2.zip
Index the sensor array starting from 0 not sc_vd_id_low. On my R310 this
is 1 so there, this avoids writing past the end of malloc'd space during init. Also means the correct sensor address is registered so sysctl hw.sensors works. Was: hw.sensors.mpii0.drive0=unknown (sd0), UNKNOWN Now: hw.sensors.mpii0.drive0=online (sd0), OK ok dlg@
Diffstat (limited to 'lib/libc')
0 files changed, 0 insertions, 0 deletions