[CRIU] [PATCH criu-dev] cg: rpc -- Fix typos for custom cgroup props engine
Cyrill Gorcunov
gorcunov at openvz.org
Wed Jun 1 05:22:12 PDT 2016
Seems @rpc-> part has been sneaked out (forgot to
push into index), as result it built fine locally,
but not when applied from the patch.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
lib/c/criu.c | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lib/c/criu.c b/lib/c/criu.c
index 2e9ad75ac795..a2aa4235264a 100644
--- a/lib/c/criu.c
+++ b/lib/c/criu.c
@@ -731,17 +731,17 @@ int criu_local_add_cg_dump_controller(criu_opts *opts, char *name)
char **new;
size_t nr;
- nr = opts->n_cgroup_dump_controller + 1;
- new = realloc(opts->cgroup_dump_controller, nr * sizeof(char *));
+ nr = opts->rpc->n_cgroup_dump_controller + 1;
+ new = realloc(opts->rpc->cgroup_dump_controller, nr * sizeof(char *));
if (!new)
return -ENOMEM;
- new[opts->n_cgroup_dump_controller] = strdup(name);
- if (!new[opts->n_cgroup_dump_controller])
+ new[opts->rpc->n_cgroup_dump_controller] = strdup(name);
+ if (!new[opts->rpc->n_cgroup_dump_controller])
return -ENOMEM;
- opts->n_cgroup_dump_controller = nr;
- opts->cgroup_dump_controller = new;
+ opts->rpc->n_cgroup_dump_controller = nr;
+ opts->rpc->cgroup_dump_controller = new;
return 0;
}
--
2.5.5
More information about the CRIU
mailing list