X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=a50539ef5a618e532ab821110fcc7d2b9444fb79;hb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;hp=b63dee9a196def27c632556a1cb4c9021a07efcc;hpb=88bd89f106abd5c0a9f9a80246e31a16c36a3c6d;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index b63dee9a..a50539ef 100644 --- a/src/protocols.c +++ b/src/protocols.c @@ -87,8 +87,7 @@ static int read_file(const char *path) { fh = fopen(path, "r"); if (fh == NULL) { - ERROR("protocols plugin: fopen (%s) failed: %s.", path, - sstrerror(errno, key_buffer, sizeof(key_buffer))); + ERROR("protocols plugin: fopen (%s) failed: %s.", path, STRERRNO); return -1; }