X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fsensors.c;h=572d41f1f34b6d4580a7a6bdd5dda56d6397c2e2;hp=f4ecda5e49e0f12114ea32ccc2260a31789b4ad4;hb=0b7cd83a5e6bac068ea83a88a5ddcfb07c09fbec;hpb=a6a884d250900f2d7abcd1523aa4d97db520b9c2 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; } }