cgfsng: build_full_cgpath_from_monitorpath()

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2018-02-17 19:42:17 +01:00
parent 11c2386797
commit c40c820909
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -2405,11 +2405,10 @@ static const char *cgfsng_get_cgroup(void *hdata, const char *subsystem)
return h->fullcgpath ? h->fullcgpath + strlen(h->mountpoint) : NULL; return h->fullcgpath ? h->fullcgpath + strlen(h->mountpoint) : NULL;
} }
/* /* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a full path,
* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a * which must be freed by the caller.
* full path, which must be freed by the caller.
*/ */
static char *build_full_cgpath_from_monitorpath(struct hierarchy *h, static inline char *build_full_cgpath_from_monitorpath(struct hierarchy *h,
const char *inpath, const char *inpath,
const char *filename) const char *filename)
{ {