examples/qos_sched: fix negative loop bound in option parsing
authorSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Thu, 21 Apr 2016 13:08:11 +0000 (15:08 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 16 May 2016 16:49:12 +0000 (18:49 +0200)
commitcb9234082a86069452d796fcf45b6cf54f0afbbe
treeea903f39e719bd18709fa2bc9909dc41d65e32ab
parent035b6a4f4bba4febb66ae607cbae1322f76546d5
examples/qos_sched: fix negative loop bound in option parsing

negative_returns: Using unsigned variable n_tokens in a loop exit condition.

Coverity issue: 30704
Fixes: de3cfa2c9823 ("sched: initial import")

Signed-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
examples/qos_sched/args.c