projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tree wide: Replace sstrerror() with STRERROR().
[collectd.git]
/
src
/
protocols.c
diff --git
a/src/protocols.c
b/src/protocols.c
index
47f7a08
..
a50539e
100644
(file)
--- 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) {
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;
}
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,
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;
if (ignorelist_match(values_list, match_name))
continue;