diff options
author | monsta <[email protected]> | 2016-03-02 11:37:14 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-03-02 11:37:14 +0300 |
commit | 6ad1bdcf4b81785c8296b29eaccb73becebce21f (patch) | |
tree | 673d23e239147527d3e86536c764a45ce22e3f4b /src/cgroups.cpp | |
parent | 4cf84b34933740627b09723d416c1969d21e47c7 (diff) | |
download | mate-system-monitor-6ad1bdcf4b81785c8296b29eaccb73becebce21f.tar.bz2 mate-system-monitor-6ad1bdcf4b81785c8296b29eaccb73becebce21f.tar.xz |
clean up some includes, remove some dead code
Diffstat (limited to 'src/cgroups.cpp')
-rw-r--r-- | src/cgroups.cpp | 8 |
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 */ |