]> git.proxmox.com Git - mirror_lxc.git/commitdiff
c/r: make local function static
authorAdrian Reber <areber@redhat.com>
Fri, 15 Jul 2016 08:54:30 +0000 (10:54 +0200)
committerAdrian Reber <areber@redhat.com>
Fri, 15 Jul 2016 08:54:30 +0000 (10:54 +0200)
This is a minimal commit which makes the function 'do_restore()' static
as it is not used anywhere else in the code. This also removes a
trailing space my editor complained about.

Signed-off-by: Adrian Reber <areber@redhat.com>
src/lxc/criu.c

index 630e67b55e147c9550aaac53c1baba1824d39239..804fd41b2513dcc7b20817be4105c641c085532c 100644 (file)
@@ -45,7 +45,7 @@
 #include "network.h"
 #include "utils.h"
 
-#define CRIU_VERSION           "2.0"
+#define CRIU_VERSION           "2.0"
 
 #define CRIU_GITID_VERSION     "2.0"
 #define CRIU_GITID_PATCHLEVEL  0
@@ -582,7 +582,7 @@ out_unlock:
 
 // do_restore never returns, the calling process is used as the
 // monitor process. do_restore calls exit() if it fails.
-void do_restore(struct lxc_container *c, int status_pipe, struct migrate_opts *opts, char *criu_version)
+static void do_restore(struct lxc_container *c, int status_pipe, struct migrate_opts *opts, char *criu_version)
 {
        pid_t pid;
        char pidfile[L_tmpnam];