diff mbox

timer.c: assignment of unsigned to signed

Message ID 1396093984-18346-1-git-send-email-mike.holmes@linaro.org
State Accepted
Headers show

Commit Message

Mike Holmes March 29, 2014, 11:53 a.m. UTC
The passed in argument or returned value was defined as uint32_t
odp_timer_t, however the the local variable id was defined as an int.

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 platform/linux-generic/source/odp_timer.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/source/odp_timer.c b/platform/linux-generic/source/odp_timer.c
index 4bcc479..824ec0e 100644
--- a/platform/linux-generic/source/odp_timer.c
+++ b/platform/linux-generic/source/odp_timer.c
@@ -178,7 +178,7 @@  odp_timer_t odp_timer_create(const char *name, odp_buffer_pool_t pool,
 			     uint64_t resolution, uint64_t min_tmo,
 			     uint64_t max_tmo)
 {
-	int id;
+	uint32_t id;
 	(void) name; (void) resolution; (void) min_tmo; (void) max_tmo;
 
 	if (odp_timer.num_timers >= NUM_TIMERS)
@@ -257,7 +257,7 @@  odp_timer_tmo_t odp_timer_absolute_tmo(odp_timer_t timer, uint64_t tmo_tick,
 
 uint64_t odp_timer_tick_to_ns(odp_timer_t timer, uint64_t ticks)
 {
-	int id;
+	uint32_t id;
 
 	id = timer - 1;
 
@@ -267,7 +267,7 @@  uint64_t odp_timer_tick_to_ns(odp_timer_t timer, uint64_t ticks)
 
 uint64_t odp_timer_ns_to_tick(odp_timer_t timer, uint64_t ns)
 {
-	int id;
+	uint32_t id;
 
 	id = timer - 1;
 
@@ -277,7 +277,7 @@  uint64_t odp_timer_ns_to_tick(odp_timer_t timer, uint64_t ns)
 
 uint64_t odp_timer_resolution(odp_timer_t timer)
 {
-	int id;
+	uint32_t id;
 
 	id = timer - 1;
 
@@ -287,7 +287,7 @@  uint64_t odp_timer_resolution(odp_timer_t timer)
 
 uint64_t odp_timer_maximum_tmo(odp_timer_t timer)
 {
-	int id;
+	uint32_t id;
 
 	id = timer - 1;
 
@@ -297,7 +297,7 @@  uint64_t odp_timer_maximum_tmo(odp_timer_t timer)
 
 uint64_t odp_timer_current_tick(odp_timer_t timer)
 {
-	int id;
+	uint32_t id;
 
 	id = timer - 1;