mbuf: 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:35 +0000 (17:37 +0200)
commita42eb3d50804a5b3050b9bd3eaea956b8d981d36
tree1f8ec6ae323dedcc48b98d5f1e20b39857737d46
parent5a93d158fb5223c4011c59d2e4b4a3b5733c2c2b
mbuf: 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: 7755baae8378 ("mbuf: silence warning on pointer arithmetic")

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