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/ipsec/ipsec_inline_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'test/validation/api/ipsec/ipsec_inline_in.c') diff --git a/test/validation/api/ipsec/ipsec_inline_in.c b/test/validation/api/ipsec/ipsec_inline_in.c index cbb3a178a..8deb3c8df 100644 --- a/test/validation/api/ipsec/ipsec_inline_in.c +++ b/test/validation/api/ipsec/ipsec_inline_in.c @@ -40,7 +40,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; odp_cunit_register_global_init(ipsec_sync_init); -- cgit v1.2.3