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

index d5f7006b19b5f1090e5bbb4c57da5972d06b0c58..e389c58532852ccf3f5fc6276e883fd96eb5d59a 100644 (file)
@@ -997,7 +997,7 @@ static int lxc_attach_pty(struct lxc_conf *conf, struct lxc_pty *pty)
 
 on_error:
        lxc_terminal_delete(pty);
-       lxc_pty_conf_free(pty);
+       lxc_terminal_conf_free(pty);
        return -1;
 }
 
@@ -1387,7 +1387,7 @@ int lxc_attach(const char *name, const char *lxcpath,
 
                if (options->attach_flags & LXC_ATTACH_ALLOCATE_PTY) {
                        lxc_terminal_delete(&pty);
-                       lxc_pty_conf_free(&pty);
+                       lxc_terminal_conf_free(&pty);
                }
                lxc_proc_put_context_info(init_ctx);
                return ret_parent;
index 27e646e2a5e479897460fa2e13ca47562aca9f87..25da1068305b8e6fca7af6086a2797d0fa8a090e 100644 (file)
@@ -3786,7 +3786,7 @@ void lxc_conf_free(struct lxc_conf *conf)
                return;
        if (current_config == conf)
                current_config = NULL;
-       lxc_pty_conf_free(&conf->console);
+       lxc_terminal_conf_free(&conf->console);
        free(conf->rootfs.mount);
        free(conf->rootfs.bdev_type);
        free(conf->rootfs.options);
index ac16d1e265e3f82a76d4b4a39b7f288b1dabd671..b3e91226ae932d3cb91d8282418982bc7292f265 100644 (file)
@@ -1146,7 +1146,7 @@ void lxc_terminal_init(struct lxc_pty *pty)
        lxc_terminal_info_init(&pty->peerpty);
 }
 
-void lxc_pty_conf_free(struct lxc_pty *terminal)
+void lxc_terminal_conf_free(struct lxc_pty *terminal)
 {
        free(terminal->log_path);
        free(terminal->path);
index a81e67db5230d78b5016f9abfb4bb73098e9dd24..5893570fd2e70b2765986d589ed682317ddfcc4c 100644 (file)
@@ -234,7 +234,7 @@ extern int lxc_terminal_io_cb(int fd, uint32_t events, void *data,
 
 extern int lxc_make_controlling_pty(int fd);
 extern int lxc_login_pty(int fd);
-extern void lxc_pty_conf_free(struct lxc_pty *console);
+extern void lxc_terminal_conf_free(struct lxc_pty *console);
 extern void lxc_terminal_info_init(struct lxc_pty_info *pty);
 extern void lxc_terminal_init(struct lxc_pty *pty);
 extern int lxc_pty_map_ids(struct lxc_conf *c, struct lxc_pty *pty);