From a0012d643c8b2df5506a19a7322fe9cb8321aa3f Mon Sep 17 00:00:00 2001 From: Dhaval Giani Date: Wed, 4 Mar 2009 16:55:35 +0530 Subject: libcgroup: Fix unused variable warnings for the walk_tree API MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit api.c: In function ‘cg_walk_node’: api.c:2252: warning: unused variable ‘base_level’ api.c: In function ‘cgroup_walk_tree_end’: api.c:2314: warning: unused variable ‘ret’ Fix the above warnings. Signed-off-by: Dhaval Giani Cc: Balbir Singh --- api.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/api.c b/api.c index 336e14a..1883987 100644 --- a/api.c +++ b/api.c @@ -2249,7 +2249,6 @@ static int cg_walk_node(FTS *fts, FTSENT *ent, const int depth, struct cgroup_file_info *info) { int ret = 0; - int base_level; if (!cgroup_initialized) return ECGROUPNOTINITIALIZED; @@ -2311,7 +2310,6 @@ int cgroup_walk_tree_next(const int depth, void **handle, int cgroup_walk_tree_end(void **handle) { - int ret = 0; FTS *fts = *(FTS **)handle; if (!cgroup_initialized) -- cgit