The following pull request was submitted through Github.
It can be accessed and reviewed at: https://github.com/lxc/lxc/pull/1082

This e-mail was sent by the LXC bot, direct replies will not reach the author
unless they happen to be subscribed to this list.

=== Description (from pull-request) ===
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 <are...@redhat.com>
From c33b0338fab4646e9308b2c82a54976cd9c1d4b0 Mon Sep 17 00:00:00 2001
From: Adrian Reber <are...@redhat.com>
Date: Fri, 15 Jul 2016 10:54:30 +0200
Subject: [PATCH] c/r: make local function static

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 <are...@redhat.com>
---
 src/lxc/criu.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/lxc/criu.c b/src/lxc/criu.c
index 630e67b..804fd41 100644
--- a/src/lxc/criu.c
+++ b/src/lxc/criu.c
@@ -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 @@ static bool restore_net_info(struct lxc_container *c)
 
 // 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];
_______________________________________________
lxc-devel mailing list
lxc-devel@lists.linuxcontainers.org
http://lists.linuxcontainers.org/listinfo/lxc-devel

Reply via email to