mem: fix variable shadowing
authorAnatoly Burakov <anatoly.burakov@intel.com>
Tue, 8 Jan 2019 16:33:59 +0000 (16:33 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 14 Jan 2019 14:42:40 +0000 (15:42 +0100)
commit199629022c5832f72431570d4f9d615f7a90f2ca
tree00e6ef8ac9f9627a0e2943755eb9dd66b6d25820
parentc0f8d50d1c3930c560f244b66c6820879be9297c
mem: fix variable shadowing

A local variable ``flags`` was shadowing another variable from outer
scope. Fix this by renaming the variable and make it const.

Fixes: c127be93f619 ("mem: support using memfd segments for in-memory mode")
Cc: stable@dpdk.org
Signed-off-by: Anatoly Burakov <anatoly.burakov@intel.com>
lib/librte_eal/linuxapp/eal/eal_memalloc.c