Commit 607e1890 authored by Guillaume Quintard's avatar Guillaume Quintard

-some must have a non-zero arg

parent 9a8279b7
......@@ -2159,9 +2159,12 @@ cmd_rxcont(CMD_ARGS)
CAST_OBJ_NOTNULL(s, priv, STREAM_MAGIC);
while (*++av)
if (!strcmp(*av, "-some"))
STRTOU32_CHECK(times, av, p, vl, "-some", 0);
else if (!strcmp(*av, "-all"))
if (!strcmp(*av, "-some")) {
STRTOU32(times, *av, p, vl, "-some");
if (time <= 0)
vtc_fatal(vl, "-some argument must be more"
"than 0 (found \"%s\")\n", *av);
} else if (!strcmp(*av, "-all"))
loop = 1;
else
break;
......
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