X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=src%2Fprotocols.c;h=a50539ef5a618e532ab821110fcc7d2b9444fb79;hb=fc2993befd2d9d6d9392cf109f033d0d6f421436;hp=b63dee9a196def27c632556a1cb4c9021a07efcc;hpb=4eca75de34e9c3d7f2391b9c7a5951a27a713804;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; }