ipc: replace bool checks with explicit non-zero
authorThomas Monjalon <thomas@monjalon.net>
Fri, 3 May 2019 15:35:39 +0000 (17:35 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Fri, 3 May 2019 20:02:57 +0000 (22:02 +0200)
commitbb8b33b9a6ae491e1d3bb14caaa9ed196dc55038
tree047bab7347b9b78cd92092d5ed51ebffccf43709
parent7f7a22b5a00d67f0797aa68598fc875777fd71dc
ipc: replace bool checks with explicit non-zero

The function check_input() was returning a bool as error code.
It is changed to return an int, semantically more correct.
While at it, make checks of validate_action_name() return
explicit as described in the coding guidelines.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/common/eal_common_proc.c