]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
libcgroup wrappers: Remove duplicated code
authorDhaval Giani <dhaval.giani@gmail.com>
Fri, 4 Nov 2011 11:46:54 +0000 (17:16 +0530)
committerDhaval Giani <dhaval.giani@gmail.com>
Wed, 9 Nov 2011 11:13:18 +0000 (16:43 +0530)
commitd4bc2d97ce09c59be1c7896bd7d654e644a7d517
tree0476e1315ac97e8da7146800e7a756d3b0107094
parent1d14e03b4d0ccfaf9fb0ea72c77aa7a2b04cb671
libcgroup wrappers: Remove duplicated code

There is a lot of duplicated code in the wrappers. This is a hinderance
when one wants to change the basic design and in general maintainence.

Remove the duplicated code.

Also add a test case to test the changes.

Signed-off-by: Dhaval Giani <dhaval.giani@gmail.com>
Acked-By: Jan Safranek <jsafrane@redhat.com>
src/wrapper.c
tests/.gitignore
tests/Makefile.am
tests/wrapper_test.c [new file with mode: 0644]