]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: lxc_terminal_peer_proxy_free()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 15:36:09 +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 884be2ff7b434119bf505728e0290d7229bab89c..3e50ebf8960c308e6709f3e4155c4a8c8ae440c1 100644 (file)
@@ -509,7 +509,7 @@ int lxc_setup_tios(int fd, struct termios *oldtios)
        return 0;
 }
 
-static void lxc_console_peer_proxy_free(struct lxc_pty *console)
+static void lxc_terminal_peer_proxy_free(struct lxc_pty *console)
 {
        if (console->tty_state) {
                lxc_terminal_signal_fini(console->tty_state);
@@ -571,7 +571,7 @@ static int lxc_console_peer_proxy_alloc(struct lxc_pty *console, int sockfd)
        return 0;
 
 err1:
-       lxc_console_peer_proxy_free(console);
+       lxc_terminal_peer_proxy_free(console);
        return -1;
 }
 
@@ -630,7 +630,7 @@ void lxc_console_free(struct lxc_conf *conf, int fd)
 
        if (console->peerpty.busy == fd) {
                lxc_mainloop_del_handler(console->descr, console->peerpty.slave);
-               lxc_console_peer_proxy_free(console);
+               lxc_terminal_peer_proxy_free(console);
        }
 }