From: Christian Brauner Date: Tue, 27 Feb 2018 15:36:49 +0000 (+0100) Subject: console: lxc_terminal_peer_proxy_alloc() X-Git-Tag: lxc-3.0.0.beta1~5^2~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93ed49903f1b39daee8f6ee9bc217c7fd3a89f9b;p=thirdparty%2Flxc.git console: lxc_terminal_peer_proxy_alloc() Signed-off-by: Christian Brauner --- diff --git a/src/lxc/console.c b/src/lxc/console.c index 3e50ebf89..f9ec6049f 100644 --- a/src/lxc/console.c +++ b/src/lxc/console.c @@ -524,7 +524,7 @@ static void lxc_terminal_peer_proxy_free(struct lxc_pty *console) console->peer = -1; } -static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd) +static int lxc_terminal_peer_proxy_alloc(struct lxc_pty *console, int sockfd) { struct termios oldtermio; struct lxc_tty_state *ts; @@ -582,7 +582,7 @@ int lxc_console_allocate(struct lxc_conf *conf, int sockfd, int *ttyreq) struct lxc_pty *console = &conf->console; if (*ttyreq == 0) { - if (lxc_console_peer_proxy_alloc(console, sockfd) < 0) + if (lxc_terminal_peer_proxy_alloc(console, sockfd) < 0) goto out; masterfd = console->peerpty.master; goto out;