From: Olivier Matz Date: Mon, 18 May 2015 08:17:59 +0000 (+0200) Subject: examples/netmap: fix build for x32 ABI X-Git-Tag: spdx-start~9179 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=3d037e44a48318e66681dc861bd86eb15921b74c;p=dpdk.git examples/netmap: fix build for x32 ABI Fix a cast issue: examples/netmap_compat/lib/compat_netmap.c:827:10: error: cast to pointer from integer of different size [-Werror=int-to-pointer-cast] Signed-off-by: Olivier Matz --- diff --git a/examples/netmap_compat/lib/compat_netmap.c b/examples/netmap_compat/lib/compat_netmap.c index 1d86ef0145..856ab6ee2e 100644 --- a/examples/netmap_compat/lib/compat_netmap.c +++ b/examples/netmap_compat/lib/compat_netmap.c @@ -824,7 +824,7 @@ rte_netmap_mmap(void *addr, size_t length, return (MAP_FAILED); } - return ((void *)((uintptr_t)netmap.mem + offset)); + return (void *)((uintptr_t)netmap.mem + (uintptr_t)offset); } /**