X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fprotocols.c;h=a50539ef5a618e532ab821110fcc7d2b9444fb79;hb=849f5394cce97a76da080f6cd9e5194b7f4ee0f0;hp=47f7a08a3f12d907ad81caadcab5f8b6cd4daa06;hpb=be126043c2be20399d7670fe194645292018bde0;p=collectd.git diff --git a/src/protocols.c b/src/protocols.c index 47f7a08a..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; } @@ -157,7 +156,7 @@ static int read_file(const char *path) { char match_name[2 * DATA_MAX_NAME_LEN]; snprintf(match_name, sizeof(match_name), "%s:%s", key_buffer, - key_fields[i]); + key_fields[i]); if (ignorelist_match(values_list, match_name)) continue;