]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: lxc_terminal_peer_proxy_alloc()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 15:36:49 +0000 (16:36 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 21:18:12 +0000 (22:18 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/console.c

index 3e50ebf8960c308e6709f3e4155c4a8c8ae440c1..f9ec6049f88457bfe4fe4ce44158ecb9f485db5e 100644 (file)
@@ -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;