Fix typo in temperature
Aaron Marcher me@drkhsh.at
Sun, 29 Apr 2018 22:44:09 +0200
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
components/temperature.c
→
components/temperature.c
@@ -35,7 +35,7 @@ mib[4] = 0; /* temp0 */
size = sizeof(temp); - if (sysctl(mib, 5, &temp, &sz, NULL, 0) == -1) { + if (sysctl(mib, 5, &temp, &size, NULL, 0) == -1) { fprintf(stderr, "sysctl 'SENSOR_TEMP': %s\n", strerror(errno)); return NULL; }