console: lxc_terminal_create()

parent 564e31c4
...@@ -980,7 +980,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty) ...@@ -980,7 +980,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty)
lxc_pty_init(pty); lxc_pty_init(pty);
ret = lxc_pty_create(pty); ret = lxc_terminal_create(pty);
if (ret < 0) { if (ret < 0) {
SYSERROR("Failed to create pty"); SYSERROR("Failed to create pty");
return -1; return -1;
......
...@@ -833,7 +833,7 @@ int lxc_terminal_create_log_file(struct lxc_pty *terminal) ...@@ -833,7 +833,7 @@ int lxc_terminal_create_log_file(struct lxc_pty *terminal)
return 0; return 0;
} }
int lxc_pty_create(struct lxc_pty *terminal) int lxc_terminal_create(struct lxc_pty *terminal)
{ {
int ret, saved_errno; int ret, saved_errno;
...@@ -880,7 +880,7 @@ int lxc_terminal_setup(struct lxc_conf *conf) ...@@ -880,7 +880,7 @@ int lxc_terminal_setup(struct lxc_conf *conf)
return 0; return 0;
} }
ret = lxc_pty_create(terminal); ret = lxc_terminal_create(terminal);
if (ret < 0) if (ret < 0)
return -1; return -1;
......
...@@ -82,11 +82,11 @@ extern int lxc_terminal_allocate(struct lxc_conf *conf, int sockfd, int *ttynum ...@@ -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 * automatically chowned to the uid/gid of the unprivileged user. For this
* ttys_shift_ids() can be called.) * 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. * 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 *); extern int lxc_terminal_setup(struct lxc_conf *);
......
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