mempool: fix explicit cast to build C++ app
authorSergey Balabanov <balabanovsv@ecotelecom.ru>
Wed, 12 Aug 2015 09:11:04 +0000 (12:11 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 17 Aug 2015 15:37:46 +0000 (17:37 +0200)
commitec10f96bd30840c83123198a54a3733f154f5f34
tree5b0084b57d6e9766127c5628f505a6d1eaaf24d7
parenta42eb3d50804a5b3050b9bd3eaea956b8d981d36
mempool: fix explicit cast to build C++ app

When DPDK is being compiled in C++ project using g++ then
'invalid conversion from' error appears. Added explicit
typecast on function return to get rid of the error.

Fixes: 6cf14ce4ce6c ("mempool: silence warning on pointer arithmetic")

Signed-off-by: Sergey Balabanov <balabanovsv@ecotelecom.ru>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_mempool/rte_mempool.h