#include <sys/sysctl.h>
const char *
- temp(const char *null)
+ temp(const char *unused)
{
int mib[5];
size_t size;
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;
}