summaryrefslogtreecommitdiff
path: root/src/cgroups.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/cgroups.cpp')
-rw-r--r--src/cgroups.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cgroups.cpp b/src/cgroups.cpp
index eafa1e3..e21196e 100644
--- a/src/cgroups.cpp
+++ b/src/cgroups.cpp
@@ -1,9 +1,9 @@
#include <config.h>
-#include <glib.h>
+#include <cstring>
#include <glib/gi18n.h>
-#include "procman.h"
+#include "cgroups.h"
#include "util.h"
gboolean
@@ -20,7 +20,7 @@ cgroups_enabled(void)
return has_cgroups;
}
-void
+static void
append_cgroup_name(char *line, gchar **current_cgroup_name)
{
gchar *controller, *path, *tmp, *path_plus_space;
@@ -68,7 +68,7 @@ append_cgroup_name(char *line, gchar **current_cgroup_name)
*current_cgroup_name = tmp;
}
-int
+static int
check_cgroup_changed(gchar *line, gchar *current_cgroup_set)
{
/* check if line is contained in current_cgroup_set */