Commit 3e4b0221 by Adrian Reber Committed by Stéphane Graber

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: 's avatarAdrian Reber <areber@redhat.com>
parent 2fdca63d
...@@ -45,7 +45,7 @@ ...@@ -45,7 +45,7 @@
#include "network.h" #include "network.h"
#include "utils.h" #include "utils.h"
#define CRIU_VERSION "2.0" #define CRIU_VERSION "2.0"
#define CRIU_GITID_VERSION "2.0" #define CRIU_GITID_VERSION "2.0"
#define CRIU_GITID_PATCHLEVEL 0 #define CRIU_GITID_PATCHLEVEL 0
...@@ -582,7 +582,7 @@ out_unlock: ...@@ -582,7 +582,7 @@ out_unlock:
// do_restore never returns, the calling process is used as the // do_restore never returns, the calling process is used as the
// monitor process. do_restore calls exit() if it fails. // 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; pid_t pid;
char pidfile[L_tmpnam]; char pidfile[L_tmpnam];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment