Skip to content

Commit

Permalink
cg: rpc -- Fix typos for custom cgroup props engine
Browse files Browse the repository at this point in the history
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@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
  • Loading branch information
Cyrill Gorcunov authored and xemul committed Jun 28, 2016
1 parent 900e71c commit 7e2f729
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions lib/c/criu.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 7e2f729

Please sign in to comment.