Commit 3023837d authored by Cyrill Gorcunov's avatar Cyrill Gorcunov

crtools: Return negative number on error

In a sake of consistency.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
parent dc883fe4
...@@ -306,12 +306,12 @@ int main(int argc, char *argv[]) ...@@ -306,12 +306,12 @@ int main(int argc, char *argv[])
case 'D': case 'D':
if (chdir(optarg)) { if (chdir(optarg)) {
pr_perror("can't change working directory"); pr_perror("can't change working directory");
return 1; return -1;
} }
break; break;
case 'o': case 'o':
if (init_logging(optarg)) if (init_logging(optarg))
return 1; return -1;
log_inited = 1; log_inited = 1;
break; break;
case 'h': case 'h':
......
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