X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=a50539ef5a618e532ab821110fcc7d2b9444fb79;hb=77ca1a45bab2f6adf9301723d0db68e5813a6d98;hp=b63dee9a196def27c632556a1cb4c9021a07efcc;hpb=ba1015262cdc912f9d01ab5a76037e65033c54c5;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; }