Fix for FreeBSD, thanks Ravenlock.

SVN revision: 27471
This commit is contained in:
Sebastian Dransfeld 2006-12-16 08:30:29 +00:00
parent da3724d67d
commit d00bc63561
1 changed files with 2 additions and 2 deletions

View File

@ -248,9 +248,9 @@ _temperature_sensor_init(void)
}
}
}
}
# endif
#endif
}
if ((temperature_config->sensor_type) &&
(temperature_config->sensor_name) &&
(!temperature_config->sensor_path))
@ -330,7 +330,7 @@ _temperature_cb_check(void *data)
case SENSOR_TYPE_FREEBSD:
#ifdef __FreeBSD__
len = sizeof(temp);
if (sysctl(mib, 5, &temp, &len, NULL, 0) != -1)
if (sysctl(temperature_config->mib, 5, &temp, &len, NULL, 0) != -1)
{
temp = (temp - 2732) / 10;
ret = 1;