diff mbox

[API-NEXT,PATCHv2,04/10] linux-generic: buffer: use odp_event_type_t

Message ID 1435714761-23951-4-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer July 1, 2015, 1:39 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp_buffer_inlines.h  | 2 +-
 platform/linux-generic/include/odp_buffer_internal.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_buffer_inlines.h b/platform/linux-generic/include/odp_buffer_inlines.h
index 91e56bd..fe59a32 100644
--- a/platform/linux-generic/include/odp_buffer_inlines.h
+++ b/platform/linux-generic/include/odp_buffer_inlines.h
@@ -188,7 +188,7 @@  static inline void *segment_map(odp_buffer_hdr_t *buf,
 	return (void *)seg_addr;
 }
 
-static inline int _odp_buffer_event_type(odp_buffer_t buf)
+static inline odp_event_type_t _odp_buffer_event_type(odp_buffer_t buf)
 {
 	return odp_buf_to_hdr(buf)->event_type;
 }
diff --git a/platform/linux-generic/include/odp_buffer_internal.h b/platform/linux-generic/include/odp_buffer_internal.h
index a3632fe..3e8b91e 100644
--- a/platform/linux-generic/include/odp_buffer_internal.h
+++ b/platform/linux-generic/include/odp_buffer_internal.h
@@ -117,7 +117,7 @@  typedef struct odp_buffer_hdr_t {
 		};
 	} flags;
 	int                      type;       /* buffer type */
-	int                      event_type; /* for reuse as event */
+	odp_event_type_t         event_type; /* for reuse as event */
 	uint32_t                 size;       /* max data size */
 	odp_atomic_u32_t         ref_count;  /* reference count */
 	odp_pool_t               pool_hdl;   /* buffer pool handle */