2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

crtools: Get rid of on-stack cr_options

We have global instance of them, that's enough.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2013-05-28 21:11:13 +04:00
parent d01ffda29e
commit 6bf22f8c75
16 changed files with 32 additions and 43 deletions

View File

@@ -5,8 +5,6 @@
#include "pstree.h"
#include "files.h"
struct cr_options;
struct ns_desc {
unsigned int cflag;
char *str;
@@ -31,7 +29,7 @@ extern int collect_ns_files(void);
int dump_namespaces(struct pid *pid, unsigned int ns_flags);
int prepare_namespace(int pid, unsigned long clone_flags);
int try_show_namespaces(int pid, struct cr_options *o);
int try_show_namespaces(int pid);
int switch_ns(int pid, struct ns_desc *nd, int *rst);
int restore_ns(int rst, struct ns_desc *nd);