From: Pawel Wodkowski Date: Wed, 25 Feb 2015 12:41:26 +0000 (+0100) Subject: cmdline: fix parameter type X-Git-Tag: spdx-start~9498 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=03b2f7716b185f04d29af7c2369a34aba3c5144e;p=dpdk.git cmdline: fix parameter type Fix warning reported during static analysis about size_t to int cast when passing parameters to parse_set_list(). This patch fix code formating errors that give checkpatch.pl errors after generating patch. Signed-off-by: Pawel Wodkowski Acked-by: Olivier Matz --- diff --git a/lib/librte_cmdline/cmdline_parse_portlist.c b/lib/librte_cmdline/cmdline_parse_portlist.c index fc6c14ee26..9c1fe3ea58 100644 --- a/lib/librte_cmdline/cmdline_parse_portlist.c +++ b/lib/librte_cmdline/cmdline_parse_portlist.c @@ -78,7 +78,7 @@ struct cmdline_token_ops cmdline_token_portlist_ops = { }; static void -parse_set_list(cmdline_portlist_t * pl, int low, int high) +parse_set_list(cmdline_portlist_t *pl, size_t low, size_t high) { do { pl->map |= (1 << low++); @@ -86,7 +86,7 @@ parse_set_list(cmdline_portlist_t * pl, int low, int high) } static int -parse_ports(cmdline_portlist_t * pl, const char * str) +parse_ports(cmdline_portlist_t *pl, const char *str) { size_t ps, pe; const char *first, *last;