aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorZoltan Kiss <zoltan.kiss@linaro.org>2015-07-01 18:06:17 +0100
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-06 15:15:06 +0300
commit733cacfcfb3f31826022088abe9d7cf0c50e90d4 (patch)
tree6875126c7ac4a28d21ca6550c02ca67f2aa73ee3 /example
parent981e5d880125d67ef2de64cf1bab785eec85c3c9 (diff)
event: replace complicated buffer releases with odp_event_free()
Instead of converting types let odp_event_free() to do the right thing. Signed-off-by: Zoltan Kiss <zoltan.kiss@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'example')
-rw-r--r--example/timer/odp_timer_test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/timer/odp_timer_test.c b/example/timer/odp_timer_test.c
index 44af5d1..bcab360 100644
--- a/example/timer/odp_timer_test.c
+++ b/example/timer/odp_timer_test.c
@@ -167,7 +167,7 @@ static void test_abs_timeouts(int thr, test_globals_t *gbls)
/* Cancel and free last timer used */
(void)odp_timer_cancel(ttp->tim, &ttp->ev);
if (ttp->ev != ODP_EVENT_INVALID)
- odp_timeout_free(odp_timeout_from_event(ttp->ev));
+ odp_event_free(ttp->ev);
else
EXAMPLE_ERR("Lost timeout event at timer cancel\n");
/* Since we have cancelled the timer, there is no timeout event to