commands: port lxc_cmd_get_name() to new helpers

parent 7cab4806
......@@ -1187,12 +1187,10 @@ static int lxc_cmd_get_tty_fd_callback(int fd, struct lxc_cmd_req *req,
char *lxc_cmd_get_name(const char *hashed_sock_name)
{
bool stopped = false;
struct lxc_cmd_rr cmd = {
.req = {
.cmd = LXC_CMD_GET_NAME,
},
};
int ret;
struct lxc_cmd_rr cmd;
lxc_cmd_init(&cmd, LXC_CMD_GET_NAME);
ret = lxc_cmd(NULL, &cmd, &stopped, NULL, hashed_sock_name);
if (ret < 0)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment