Skip to content

Commit

Permalink
commands: port lxc_cmd_serve_state_clients() 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 398daa6 commit cca8af9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/lxc/commands.c
Expand Up @@ -1457,13 +1457,11 @@ int lxc_cmd_serve_state_clients(const char *name, const char *lxcpath,
lxc_state_t state)
{
bool stopped = false;
struct lxc_cmd_rr cmd = {
.req = {
.cmd = LXC_CMD_SERVE_STATE_CLIENTS,
.data = INT_TO_PTR(state)
},
};
ssize_t ret;
struct lxc_cmd_rr cmd;

lxc_cmd_init(&cmd, LXC_CMD_SERVE_STATE_CLIENTS);
lxc_cmd_data(&cmd, ENCODE_INTO_PTR_LEN, INT_TO_PTR(state));

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

0 comments on commit cca8af9

Please sign in to comment.