]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
console: lxc_terminal_create()
authorChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 16:09:38 +0000 (17:09 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Tue, 27 Feb 2018 21:33:38 +0000 (22:33 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/attach.c
src/lxc/console.c
src/lxc/console.h

index d19bc1b9db6e4b4b7cd77254526b6f0574811426..ad059e8c311f9099c921f18ad4b9e9c3d15ed5df 100644 (file)
@@ -980,7 +980,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty)
 
        lxc_pty_init(pty);
 
-       ret = lxc_pty_create(pty);
+       ret = lxc_terminal_create(pty);
        if (ret < 0) {
                SYSERROR("Failed to create pty");
                return -1;
index 37011a44faef7ceb7680f4fcbec07d7ed05cb3e7..acb4b9f070c9aad523757842ff248bbd6537f652 100644 (file)
@@ -833,7 +833,7 @@ int lxc_terminal_create_log_file(struct lxc_pty *terminal)
        return 0;
 }
 
-int lxc_pty_create(struct lxc_pty *terminal)
+int lxc_terminal_create(struct lxc_pty *terminal)
 {
        int ret, saved_errno;
 
@@ -880,7 +880,7 @@ int lxc_terminal_setup(struct lxc_conf *conf)
                return 0;
        }
 
-       ret = lxc_pty_create(terminal);
+       ret = lxc_terminal_create(terminal);
        if (ret < 0)
                return -1;
 
index e234545a25543261ed8c88a2113bfbf31878c66a..02f5a641e4785518e69b51bc03819819335dd4ff 100644 (file)
@@ -82,11 +82,11 @@ extern int  lxc_terminal_allocate(struct lxc_conf *conf, int sockfd, int *ttynum
  * automatically chowned to the uid/gid of the unprivileged user. For this
  * ttys_shift_ids() can be called.)
  */
-extern int lxc_pty_create(struct lxc_pty *console);
+extern int lxc_terminal_create(struct lxc_pty *console);
 
 /**
  * lxc_terminal_setup: Create a new pty.
- * - In addition to lxc_pty_create() also sets up all pty logs.
+ * - In addition to lxc_terminal_create() also sets up all pty logs.
  */
 extern int lxc_terminal_setup(struct lxc_conf *);