test/pipeline: fix return type of stub miss
authorDavid Hunt <david.hunt@intel.com>
Thu, 10 May 2018 07:38:15 +0000 (08:38 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Sun, 13 May 2018 21:24:54 +0000 (23:24 +0200)
commit97d84c7823a3c41c63163d5e70201c0b7fdae1fb
tree9334606c31d19566c799b2df8ac58e8396595746
parent1d2ff358ff2fe236a17e22eeb28ecf013814f022
test/pipeline: fix return type of stub miss

New warning with gcc 8.1:
The table_action_stub_miss() function was incorrectly
declared as returning a typedef of
rte_pipeline_table_action_handler_miss, instead of what it
should have been, an int.
Changed this to declare the function as returning an int, and
now when the action_handler_miss is set to table_action_stub_miss
(cast as rte_pipeline_table_action_handler_miss), gcc 8.1 no
longer complains about the cast.

Fixes: 5205954791cb ("app/test: packet framework unit tests")
Cc: stable@dpdk.org
Signed-off-by: David Hunt <david.hunt@intel.com>
Reviewed-by: Reshma Pattan <reshma.pattan@intel.com>
Acked-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
test/test/test_table_pipeline.c