]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
tree-wide: s/lxc_fini()/lxc_end()/g 3295/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 15 Mar 2020 14:52:30 +0000 (15:52 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sun, 15 Mar 2020 14:52:30 +0000 (15:52 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/criu.c
src/lxc/start.c
src/lxc/start.h

index 6e563892856fc340c74f33b2cc8f2ad035533614..e74bd4ddca5c90f4caf00f3e0a2fe5e74a325314 100644 (file)
@@ -1135,7 +1135,7 @@ static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_
                ret = lxc_poll(c->name, handler);
                if (ret)
                        lxc_abort(handler);
-               lxc_fini(handler);
+               lxc_end(handler);
                _exit(ret);
        }
 
@@ -1145,7 +1145,7 @@ out_fini_handler:
        if (pipes[1] >= 0)
                close(pipes[1]);
 
-       lxc_fini(handler);
+       lxc_end(handler);
 
 out:
        if (status_pipe >= 0) {
index 73d46ae39e4843b4eafac41493ef3819f052197b..c82fb89887af5b2d5a92a734c8ca89c01e97e253 100644 (file)
@@ -860,7 +860,7 @@ out_restore_sigmask:
        return -1;
 }
 
-void lxc_fini(struct lxc_handler *handler)
+void lxc_end(struct lxc_handler *handler)
 {
        int ret;
        pid_t self;
@@ -2007,7 +2007,7 @@ __private_goto2:
        detach_block_device(handler->conf);
 
 __private_goto3:
-       lxc_fini(handler);
+       lxc_end(handler);
 
        return ret;
 
index 2c3edd8c08e7a7618cf33917a1fdc275f11bc80f..7e2371c74bd8a2449ac5d5fc3bdd57f36fbc246f 100644 (file)
@@ -150,7 +150,7 @@ extern struct lxc_handler *lxc_init_handler(const char *name,
 extern void lxc_zero_handler(struct lxc_handler *handler);
 extern void lxc_free_handler(struct lxc_handler *handler);
 extern int lxc_init(const char *name, struct lxc_handler *handler);
-extern void lxc_fini(struct lxc_handler *handler);
+extern void lxc_end(struct lxc_handler *handler);
 
 /* lxc_check_inherited: Check for any open file descriptors and close them if
  *                      requested.