]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: build_full_cgpath_from_monitorpath()
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 17 Feb 2018 18:42:17 +0000 (19:42 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Wed, 21 Feb 2018 14:48:44 +0000 (15:48 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 4843580ddea20f2a58cd5d2e0dabe816da54bcaa..48229f200fc648704e679c48e4d56ad566282625 100644 (file)
@@ -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);
 }