X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fsensors.c;h=572d41f1f34b6d4580a7a6bdd5dda56d6397c2e2;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hp=f4ecda5e49e0f12114ea32ccc2260a31789b4ad4;hpb=5dbb7471b0a7ca7506f56f4c6dbaf58e790c6b7c;p=collectd.git diff --git a/src/sensors.c b/src/sensors.c index f4ecda5e..572d41f1 100644 --- a/src/sensors.c +++ b/src/sensors.c @@ -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; } }