Skip to content

Commit

Permalink
commands: port lxc_cmd_get_limit_cgroup2_fd() to new helpers
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 26, 2021
1 parent b470535 commit d3ca938
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/lxc/commands.c
Expand Up @@ -1720,15 +1720,10 @@ int lxc_cmd_get_cgroup2_fd(const char *name, const char *lxcpath)
int lxc_cmd_get_limit_cgroup2_fd(const char *name, const char *lxcpath)
{
bool stopped = false;
struct lxc_cmd_rr cmd = {
.req = {
.cmd = LXC_CMD_GET_LIMIT_CGROUP2_FD,
},
.rsp = {
.ret = -ENOSYS,
},
};
int ret;
struct lxc_cmd_rr cmd;

lxc_cmd_init(&cmd, LXC_CMD_GET_LIMIT_CGROUP2_FD);

ret = lxc_cmd(name, &cmd, &stopped, lxcpath, NULL);
if (ret < 0)
Expand Down

0 comments on commit d3ca938

Please sign in to comment.