Message ID | 1412591001-6850-3-git-send-email-ciprian.barbu@linaro.org |
---|---|
State | Accepted |
Commit | 9e73493250d59cb3c650acf4d458d3b9d6eb40b7 |
Headers | show |
diff --git a/platform/linux-dpdk/include/api/odp_buffer.h b/platform/linux-dpdk/include/api/odp_buffer.h index 9ea1ed8..b2fbc76 100644 --- a/platform/linux-dpdk/include/api/odp_buffer.h +++ b/platform/linux-dpdk/include/api/odp_buffer.h @@ -32,7 +32,7 @@ extern "C" { typedef unsigned long odp_buffer_t; -#define ODP_BUFFER_INVALID (0xffffffff) /**< Invalid buffer */ +#define ODP_BUFFER_INVALID (unsigned long)(-1L) /**< Invalid buffer */ /** diff --git a/platform/linux-dpdk/include/api/odp_buffer_pool.h b/platform/linux-dpdk/include/api/odp_buffer_pool.h index 4b75cf5..382f4f0 100644 --- a/platform/linux-dpdk/include/api/odp_buffer_pool.h +++ b/platform/linux-dpdk/include/api/odp_buffer_pool.h @@ -27,7 +27,7 @@ extern "C" { #define ODP_BUFFER_POOL_NAME_LEN 32 /** Invalid buffer pool */ -#define ODP_BUFFER_POOL_INVALID (0xffffffff) +#define ODP_BUFFER_POOL_INVALID (unsigned long)(-1L) /** ODP buffer pool */ typedef unsigned long odp_buffer_pool_t;
Signed-off-by: Ciprian Barbu <ciprian.barbu@linaro.org> --- platform/linux-dpdk/include/api/odp_buffer.h | 2 +- platform/linux-dpdk/include/api/odp_buffer_pool.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)