From 2dd99bc9f1a2b3eea466a4c03cc2457fe1948fc2 Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 17 Dec 2008 15:12:30 +0000 Subject: 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 git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@257 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcgrouptest.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/libcgrouptest.h') 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() { -- cgit