Commit 391d5894 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

options: Use union for @daemon and @restore_detach

They both are using 'd' option in different context
though, lets give them two names.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 374017cf
......@@ -558,10 +558,10 @@ int main(int argc, char *argv[], char *envp[])
}
if (!strcmp(argv[optind], "page-server"))
return cr_page_server(opts.restore_detach, -1) > 0 ? 0 : 1;
return cr_page_server(opts.daemon_mode, -1) > 0 ? 0 : 1;
if (!strcmp(argv[optind], "service"))
return cr_service(opts.restore_detach);
return cr_service(opts.daemon_mode);
if (!strcmp(argv[optind], "dedup"))
return cr_dedup() != 0;
......
......@@ -27,7 +27,10 @@ struct cr_options {
char *show_fmt;
bool check_ms_kernel;
bool show_pages_content;
union {
bool restore_detach;
bool daemon_mode;
};
bool restore_sibling;
bool ext_unix_sk;
bool shell_job;
......
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