From: Christian Brauner Date: Sat, 17 Feb 2018 18:42:17 +0000 (+0100) Subject: cgfsng: build_full_cgpath_from_monitorpath() X-Git-Tag: lxc-2.0.10~275 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b4200498cf1617fc4ec1f8b3b52936e9c7a2ea7;p=thirdparty%2Flxc.git cgfsng: build_full_cgpath_from_monitorpath() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/cgroups/cgfsng.c b/src/lxc/cgroups/cgfsng.c index 4843580dd..48229f200 100644 --- a/src/lxc/cgroups/cgfsng.c +++ b/src/lxc/cgroups/cgfsng.c @@ -2383,13 +2383,12 @@ static const char *cgfsng_get_cgroup(void *hdata, const char *subsystem) return h->fullcgpath ? h->fullcgpath + strlen(h->mountpoint) : NULL; } -/* - * Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a - * full path, which must be freed by the caller. +/* Given a cgroup path returned from lxc_cmd_get_cgroup_path, build a full path, + * which must be freed by the caller. */ -static char *build_full_cgpath_from_monitorpath(struct hierarchy *h, - const char *inpath, - const char *filename) +static inline char *build_full_cgpath_from_monitorpath(struct hierarchy *h, + const char *inpath, + const char *filename) { return must_make_path(h->mountpoint, inpath, filename, NULL); }