From cf0fca8a1963c9ad939e8b0cce986c850a41c6ca Mon Sep 17 00:00:00 2001 From: Janne Peltonen Date: Thu, 4 Jan 2024 15:38:15 +0200 Subject: test: cunit: make odp_cunit_parse_options() update argc Have odp_cunit_parse_options() update the option count after it has removed the options it handled. This enables the callers to have their own command line option processing after odp_cunit_parse_options() as probably originally intended. Signed-off-by: Janne Peltonen Reviewed-by: Matias Elo --- test/validation/api/cpumask/cpumask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/validation/api/cpumask/cpumask.c') diff --git a/test/validation/api/cpumask/cpumask.c b/test/validation/api/cpumask/cpumask.c index b358a5be6..db500df3a 100644 --- a/test/validation/api/cpumask/cpumask.c +++ b/test/validation/api/cpumask/cpumask.c @@ -188,7 +188,7 @@ int main(int argc, char *argv[]) int ret; /* parse common options: */ - if (odp_cunit_parse_options(argc, argv)) + if (odp_cunit_parse_options(&argc, argv)) return -1; ret = odp_cunit_register(cpumask_suites); -- cgit v1.2.3