projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Treewide: use bool instead of _Bool
[collectd.git]
/
src
/
cgroups.c
diff --git
a/src/cgroups.c
b/src/cgroups.c
index
18e489d
..
103e70f
100644
(file)
--- a/
src/cgroups.c
+++ b/
src/cgroups.c
@@
-79,9
+79,7
@@
static int read_cpuacct_procs(const char *dirname, char const *cgroup_name,
cgroup_name);
fh = fopen(abs_path, "r");
if (fh == NULL) {
cgroup_name);
fh = fopen(abs_path, "r");
if (fh == NULL) {
- char errbuf[1024];
- ERROR("cgroups plugin: fopen (\"%s\") failed: %s", abs_path,
- sstrerror(errno, errbuf, sizeof(errbuf)));
+ ERROR("cgroups plugin: fopen (\"%s\") failed: %s", abs_path, STRERRNO);
return -1;
}
return -1;
}
@@
-183,7
+181,7
@@
static int cgroups_config(const char *key, const char *value) {
static int cgroups_read(void) {
cu_mount_t *mnt_list = NULL;
static int cgroups_read(void) {
cu_mount_t *mnt_list = NULL;
-
_B
ool cgroup_found = 0;
+
b
ool cgroup_found = 0;
if (cu_mount_getlist(&mnt_list) == NULL) {
ERROR("cgroups plugin: cu_mount_getlist failed.");
if (cu_mount_getlist(&mnt_list) == NULL) {
ERROR("cgroups plugin: cu_mount_getlist failed.");