console: lxc_terminal_mainloop_add_peer()

parent de708fb7
...@@ -407,7 +407,7 @@ int lxc_terminal_io_cb(int fd, uint32_t events, void *data, ...@@ -407,7 +407,7 @@ int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
return 0; return 0;
} }
static int lxc_console_mainloop_add_peer(struct lxc_pty *console) static int lxc_terminal_mainloop_add_peer(struct lxc_pty *console)
{ {
int ret; int ret;
...@@ -454,7 +454,7 @@ int lxc_console_mainloop_add(struct lxc_epoll_descr *descr, ...@@ -454,7 +454,7 @@ int lxc_console_mainloop_add(struct lxc_epoll_descr *descr,
* does attach to it in lxc_console_allocate(). * does attach to it in lxc_console_allocate().
*/ */
console->descr = descr; console->descr = descr;
ret = lxc_console_mainloop_add_peer(console); ret = lxc_terminal_mainloop_add_peer(console);
if (ret < 0) if (ret < 0)
return -1; return -1;
...@@ -563,7 +563,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd) ...@@ -563,7 +563,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
console->tty_state = ts; console->tty_state = ts;
console->peer = console->peerpty.slave; console->peer = console->peerpty.slave;
console->peerpty.busy = sockfd; console->peerpty.busy = sockfd;
ret = lxc_console_mainloop_add_peer(console); ret = lxc_terminal_mainloop_add_peer(console);
if (ret < 0) if (ret < 0)
goto err1; goto err1;
......
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