X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fprotocols.c;h=59eb49a772e83f95e8406334c697b1be7287e62f;hp=b63dee9a196def27c632556a1cb4c9021a07efcc;hb=06a86a60a7dabc685bdbd81ce3d36ea5f7e2c2d4;hpb=7c2336dde35a7b42853b6ca167d4164619e52333 diff --git a/src/protocols.c b/src/protocols.c index b63dee9a..59eb49a7 100644 --- a/src/protocols.c +++ b/src/protocols.c @@ -45,7 +45,7 @@ static const char *config_keys[] = { }; static int config_keys_num = STATIC_ARRAY_SIZE(config_keys); -static ignorelist_t *values_list = NULL; +static ignorelist_t *values_list; /* * Functions @@ -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; }