cgroup-util: move Set* allocation into cg_kernel_controllers()

Previously, callers had to do this on their own. Let's make the call do
that instead, making the caller code a bit shorter.
This commit is contained in:
Lennart Poettering
2017-11-21 11:54:08 +01:00
parent bf516294c8
commit 6925a0de4e
4 changed files with 17 additions and 14 deletions
+1 -1
View File
@@ -243,7 +243,7 @@ int cg_mask_supported(CGroupMask *ret);
int cg_mask_from_string(const char *s, CGroupMask *ret);
int cg_mask_to_string(CGroupMask mask, char **ret);
int cg_kernel_controllers(Set *controllers);
int cg_kernel_controllers(Set **controllers);
bool cg_ns_supported(void);