Signed-off-by: Christian Brauner <christian.brauner@canonical.com>
args->nowait = 1;
break;
case 't':
- if (lxc_safe_int(arg, &args->timeout) < 0)
+ if (lxc_safe_long(arg, &args->timeout) < 0)
return -1;
break;
case 'k':
/* Set default timeout */
if (my_args.timeout == -2) {
- if (my_args.hardstop) {
+ if (my_args.hardstop)
my_args.timeout = 0;
- }
- else {
+ else
my_args.timeout = 60;
- }
}
- if (my_args.nowait) {
+ if (my_args.nowait)
my_args.timeout = 0;
- }
/* some checks */
if (!my_args.hardstop && my_args.timeout < -1) {