]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
api.c: Refactor cgroup_create_cgroup()
authorTom Hromatka <tom.hromatka@oracle.com>
Wed, 9 Feb 2022 19:27:43 +0000 (12:27 -0700)
committerTom Hromatka <tom.hromatka@oracle.com>
Thu, 10 Feb 2022 21:13:29 +0000 (14:13 -0700)
commit07ebb0b9400155fe28aa1a0224199ae316073e15
tree2370bf6b6386ab00f7b30fe33b0968edf464b58f
parent5f813b5385b739236a4d6614f99160d664b871a2
api.c: Refactor cgroup_create_cgroup()

Non-functional change to refactor cgroup_create_cgroup().  Move
the contents of this "for" loop to its own function:
for (k = 0; k < cgroup->index; k++)

This will be used as a building block for the next commit to allow
the creation of cgroups with no controllers attached.

Signed-off-by: Tom Hromatka <tom.hromatka@oracle.com>
Reviewed-by: Kamalesh Babulal <kamalesh.babulal@oracle.com>
src/api.c