summaryrefslogtreecommitdiff
path: root/lib/librte_cmdline
diff options
context:
space:
mode:
authorPawel Wodkowski <pawelx.wodkowski@intel.com>2015-02-25 13:41:26 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2015-03-04 11:19:37 +0100
commit03b2f7716b185f04d29af7c2369a34aba3c5144e (patch)
tree821db686be0472ef9cbd1640cf3e083911a63244 /lib/librte_cmdline
parent460a16507515654aac26165d2e755ddd46ebe99d (diff)
downloaddpdk-03b2f7716b185f04d29af7c2369a34aba3c5144e.zip
dpdk-03b2f7716b185f04d29af7c2369a34aba3c5144e.tar.gz
dpdk-03b2f7716b185f04d29af7c2369a34aba3c5144e.tar.xz
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 <pawelx.wodkowski@intel.com> Acked-by: Olivier Matz <olivier.matz@6wind.com>
Diffstat (limited to 'lib/librte_cmdline')
-rw-r--r--lib/librte_cmdline/cmdline_parse_portlist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/librte_cmdline/cmdline_parse_portlist.c b/lib/librte_cmdline/cmdline_parse_portlist.c
index fc6c14e..9c1fe3e 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;