diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-11 10:27:04 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-05-11 10:27:04 +0000 |
commit | 96baa975d749de2580fd352473b8dde81e081f08 (patch) | |
tree | 89c594b70da1b43a00876d86d6d89e5ff1789c02 /tests/libcg_ba.cpp | |
parent | e62a201d4da2deadf021e5bc7b80f5fc7de44c7b (diff) | |
download | libcg-96baa975d749de2580fd352473b8dde81e081f08.tar.gz libcg-96baa975d749de2580fd352473b8dde81e081f08.tar.xz libcg-96baa975d749de2580fd352473b8dde81e081f08.zip |
Merge with Dhaval's branch
Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@26 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcg_ba.cpp')
-rw-r--r-- | tests/libcg_ba.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/tests/libcg_ba.cpp b/tests/libcg_ba.cpp index a820196..b8df520 100644 --- a/tests/libcg_ba.cpp +++ b/tests/libcg_ba.cpp @@ -82,17 +82,14 @@ struct cgroup *cg::makenode(const string &name, const string &task_uid, dbg("tuid %d, tgid %d, cuid %d, cgid %d\n", tuid, tgid, cuid, cgid); - ccg->name = (char *)malloc(strlen(name.c_str()) + 1); strcpy(ccg->name, name.c_str()); ccg->controller[0] = (struct controller *) calloc(1, sizeof(struct controller)); - ccg->controller[0]->name = (char *)malloc(strlen("cpu") + 1); strcpy(ccg->controller[0]->name,"cpu"); ccg->controller[0]->values[0] = (struct control_value *) calloc(1, sizeof(struct control_value)); strcpy(ccg->controller[0]->values[0]->name,"cpu.shares"); - ccg->controller[0]->values[0]->value = (char *)malloc(strlen("100") + 1); strcpy(ccg->controller[0]->values[0]->value, "100"); ccg->tasks_uid = tuid; ccg->tasks_gid = tgid; |