diff options
author | Dave Barach <dave@barachs.net> | 2019-07-03 15:21:50 -0400 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-07-03 20:24:00 +0000 |
commit | 4bda2d955db6d61348f5da94acb72f0447a91f04 (patch) | |
tree | 17e906dab5708e121107c234a42ffb94d69ebd40 /src/vat | |
parent | fc4828cdbed3f8d6cef8d02239f8603d789ac099 (diff) |
misc: fix coverity warnings
Type: fix
Ticket: VPP-1649
Change-Id: I93a393eca80065c379035478500e75e855f39b12
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vat')
-rw-r--r-- | src/vat/api_format.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vat/api_format.c b/src/vat/api_format.c index e0d77a46b2b..5bba7efea46 100644 --- a/src/vat/api_format.c +++ b/src/vat/api_format.c @@ -18921,7 +18921,7 @@ static void vl_api_mpls_route_details_t_handler (vl_api_mpls_route_details_t * mp) { vat_main_t *vam = &vat_main; - int count = ntohl (mp->mr_route.mr_n_paths); + int count = (int) clib_net_to_host_u32 (mp->mr_route.mr_n_paths); vl_api_fib_path_t *fp; int i; @@ -18941,7 +18941,7 @@ static void vl_api_mpls_route_details_t_handler_json (vl_api_mpls_route_details_t * mp) { vat_main_t *vam = &vat_main; - int count = ntohl (mp->mr_route.mr_n_paths); + int count = (int) clib_host_to_net_u32 (mp->mr_route.mr_n_paths); vat_json_node_t *node = NULL; vl_api_fib_path_t *fp; int i; |