From 7c4ffbbd40b5fd9231d6bfa95fff0c3d1dce9182 Mon Sep 17 00:00:00 2001 From: Danny Auble <da@schedmd.com> Date: Wed, 23 May 2012 15:52:42 -0700 Subject: [PATCH] fix for using return correctly --- src/srun/opt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/srun/opt.c b/src/srun/opt.c index 3da4cda5208..f29c20bec1d 100644 --- a/src/srun/opt.c +++ b/src/srun/opt.c @@ -1745,7 +1745,7 @@ static void _opt_args(int argc, char **argv) if (_verbose) command_pos += 2; if (opt.ifname) { - if (parse_uint32(opt.ifname, &taskid) + if (!parse_uint32(opt.ifname, &taskid) && ((int) taskid < opt.ntasks)) { command_pos += 2; } -- GitLab