X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/16a97fbca129bca5656f76191c1b324b1649ec22..06d4447f03669b72a885a997b666e4cbcc6b5ed1:/components/temperature.c diff --git a/components/temperature.c b/components/temperature.c index 136e0d4..64199f5 100644 --- a/components/temperature.c +++ b/components/temperature.c @@ -16,12 +16,12 @@ #include #include #include + #include /* before for struct timeval */ #include #include - #include const char * - temp(const char *null) + temp(const char *unused) { int mib[5]; size_t size; @@ -36,8 +36,7 @@ size = sizeof(temp); if (sysctl(mib, 5, &temp, &size, NULL, 0) < 0) { - fprintf(stderr, "sysctl 'SENSOR_TEMP': %s\n", - strerror(errno)); + warn("sysctl 'SENSOR_TEMP':"); return NULL; }