From: Dave Barach Date: Wed, 20 Nov 2019 15:20:06 +0000 (-0500) Subject: misc: fix 4 coverity warnings in srv6-mobile X-Git-Tag: v20.05-rc0~346 X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=commitdiff_plain;h=fa6b556f1f75077a4f147203c402d9580bc9c84f misc: fix 4 coverity warnings in srv6-mobile Type: fix Ticket: VPP-1771 Signed-off-by: Dave Barach Change-Id: I48854befbd3d1514ad8b41ac5b194259c2a577a4 --- diff --git a/src/plugins/srv6-mobile/gtp4_e.c b/src/plugins/srv6-mobile/gtp4_e.c index 73a91f8592d..211e95d11de 100644 --- a/src/plugins/srv6-mobile/gtp4_e.c +++ b/src/plugins/srv6-mobile/gtp4_e.c @@ -121,7 +121,7 @@ srv6_end_m_gtp4_e_init (vlib_main_t * vm) gtpu_header_t *gtpu = &sm->cache_hdr.gtpu; dpo_type_t dpo_type; vlib_node_t *node; - u32 rc; + int rc; sm->vlib_main = vm; sm->vnet_main = vnet_get_main (); diff --git a/src/plugins/srv6-mobile/gtp6_d.c b/src/plugins/srv6-mobile/gtp6_d.c index 3f366e81e5c..c62320b33fd 100644 --- a/src/plugins/srv6-mobile/gtp6_d.c +++ b/src/plugins/srv6-mobile/gtp6_d.c @@ -162,7 +162,7 @@ srv6_end_m_gtp6_d_init (vlib_main_t * vm) ip6_header_t *ip6; dpo_type_t dpo_type; vlib_node_t *node; - u32 rc; + int rc; sm->vlib_main = vm; sm->vnet_main = vnet_get_main (); diff --git a/src/plugins/srv6-mobile/gtp6_d_di.c b/src/plugins/srv6-mobile/gtp6_d_di.c index 54f18738605..14318562e84 100644 --- a/src/plugins/srv6-mobile/gtp6_d_di.c +++ b/src/plugins/srv6-mobile/gtp6_d_di.c @@ -161,7 +161,7 @@ srv6_end_m_gtp6_d_di_init (vlib_main_t * vm) ip6srv_combo_header_t *ip6; dpo_type_t dpo_type; vlib_node_t *node; - u32 rc; + int rc; sm->vlib_main = vm; sm->vnet_main = vnet_get_main (); diff --git a/src/plugins/srv6-mobile/gtp6_e.c b/src/plugins/srv6-mobile/gtp6_e.c index 4bc8d97cec7..d139a649409 100644 --- a/src/plugins/srv6-mobile/gtp6_e.c +++ b/src/plugins/srv6-mobile/gtp6_e.c @@ -99,7 +99,7 @@ srv6_end_m_gtp6_e_init (vlib_main_t * vm) gtpu_header_t *gtpu = &sm->cache_hdr.gtpu; dpo_type_t dpo_type; vlib_node_t *node; - u32 rc; + int rc; sm->vlib_main = vm; sm->vnet_main = vnet_get_main ();