diff options
author | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:12:30 +0000 |
---|---|---|
committer | Balbir Singh <balbir@linux.vnet.ibm.com> | 2008-12-17 15:12:30 +0000 |
commit | 2dd99bc9f1a2b3eea466a4c03cc2457fe1948fc2 (patch) | |
tree | 873e76b3d5253aa1c8c921cc2c39657889a4aec2 /tests/libcgrouptest.h | |
parent | 099c49cf57ec4e85d779c5f24ad51236a86b88bf (diff) | |
download | libcg-2dd99bc9f1a2b3eea466a4c03cc2457fe1948fc2.tar.gz libcg-2dd99bc9f1a2b3eea466a4c03cc2457fe1948fc2.tar.xz libcg-2dd99bc9f1a2b3eea466a4c03cc2457fe1948fc2.zip |
libcgroup Test: put-commoncode-in-build-path-function
This patch puts the common code into a function build_path()
and thus reduces lots of redundant lines of code.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@257 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r-- | tests/libcgrouptest.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 8a11241..20c1f4d 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -79,6 +79,8 @@ int check_fsmounted(int multimnt); static int check_task(char *tasksfile); /* function to print messages in better format */ static inline void message(int num, int pass, char *api, int ret, char *extra); +static inline void build_path(char *target, char *mountpoint, + char *group, char *file); static inline pid_t cgrouptest_gettid() { |