summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamjan Marion <damarion@cisco.com>2015-12-16 19:39:53 +0100
committerDamjan Marion <damarion@cisco.com>2015-12-16 19:46:22 +0100
commitc4bec39c90845820abf28269e6485b65b0d0f0e1 (patch)
tree1d32e02cae8c94a6a6d2677c2ff791e9cfa93e5b
parentdb2c6c6eee9a08083af3f9dc778b63416e214ea4 (diff)
Fix warnings in CNAT code
Change-Id: Iabfe38c187b67998b96fbb68f7fc2f1bfe581dfd Signed-off-by: Damjan Marion <damarion@cisco.com>
-rw-r--r--vnet/vnet/vcgn/cnat_bulk_port.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnet/vnet/vcgn/cnat_bulk_port.c b/vnet/vnet/vcgn/cnat_bulk_port.c
index 67ddd255e0f..d8894eb84f5 100644
--- a/vnet/vnet/vcgn/cnat_bulk_port.c
+++ b/vnet/vnet/vcgn/cnat_bulk_port.c
@@ -315,9 +315,9 @@ void cnat_port_free_v2_bulk (
static i16 get_suiting_port_pos_from_range(cnat_portmap_v2_t *my_pm,
u16 bulk_start, i16 bulk_size, port_pair_t pair_type)
{
- i16 num_pos, num_bits, iterations;
+ i16 num_pos = 0, num_bits, iterations;
uword bulk_ports;
- i16 inc;
+ i16 inc = 0;
i16 num_uwords = bulk_size/BITS(my_pm->bm[0]);
if(PREDICT_FALSE(!num_uwords)) {