X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsensors.c;h=4d8e92569b84a31752087f0bb9e632dd8852c8b4;hb=61a4ed99b1a5b6d371bb745933d0efc5dff9505c;hp=f4ecda5e49e0f12114ea32ccc2260a31789b4ad4;hpb=43ee9ced15521d541dd3fb0698c9c490339dd35f;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index f4ecda5e..4d8e9256 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -158,7 +158,7 @@ typedef struct featurelist { } featurelist_t; static char *conffile = NULL; -static _Bool use_labels = 0; +static bool use_labels = 0; /* #endif (SENSORS_API_VERSION >= 0x400) && (SENSORS_API_VERSION < 0x500) */ #else /* if SENSORS_API_VERSION >= 0x500 */ @@ -269,9 +269,7 @@ static int sensors_load_conf(void) { if (conffile != NULL) { fh = fopen(conffile, "r"); if (fh == NULL) { - char errbuf[1024]; - ERROR("sensors plugin: fopen(%s) failed: %s", conffile, - sstrerror(errno, errbuf, sizeof(errbuf))); + ERROR("sensors plugin: fopen(%s) failed: %s", conffile, STRERRNO); return -1; } }