]> git.proxmox.com Git - mirror_lxc.git/commitdiff
lxc-checkpoint: make things static when they can be
authorTycho Andersen <tycho.andersen@canonical.com>
Tue, 22 Mar 2016 15:22:39 +0000 (09:22 -0600)
committerTycho Andersen <tycho.andersen@canonical.com>
Tue, 22 Mar 2016 15:22:39 +0000 (09:22 -0600)
Signed-off-by: Tycho Andersen <tycho.andersen@canonical.com>
src/lxc/lxc_checkpoint.c

index 3e5de4a3cbc6fe336b52cd7a1056326f99a6eec0..7130245a7e7cad59be8901255e8e5398cfee0cb0 100644 (file)
@@ -121,7 +121,7 @@ Options :\n\
        .checker   = my_checker,
 };
 
-bool checkpoint(struct lxc_container *c)
+static bool checkpoint(struct lxc_container *c)
 {
        bool ret;
 
@@ -142,7 +142,7 @@ bool checkpoint(struct lxc_container *c)
        return true;
 }
 
-bool restore_finalize(struct lxc_container *c)
+static bool restore_finalize(struct lxc_container *c)
 {
        bool ret = c->restore(c, checkpoint_dir, verbose);
        if (!ret) {
@@ -153,7 +153,7 @@ bool restore_finalize(struct lxc_container *c)
        return ret;
 }
 
-bool restore(struct lxc_container *c)
+static bool restore(struct lxc_container *c)
 {
        if (c->is_running(c)) {
                fprintf(stderr, "%s is running, not restoring.\n", my_args.name);