felipealmeida pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=c6733fbbed5dbf73d23cf32f1f15d557f13e8800
commit c6733fbbed5dbf73d23cf32f1f15d557f13e8800 Author: Lauro Moura <lauromo...@expertisesolutions.com.br> Date: Sat Jun 4 13:49:51 2016 -0300 eina: Fixes on promises benchmark - Updated after pointer vs value change - Updated callbacks after removal of promise argument --- src/benchmarks/eina/eina_bench_promise.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/benchmarks/eina/eina_bench_promise.c b/src/benchmarks/eina/eina_bench_promise.c index ee6153c..90a39df 100644 --- a/src/benchmarks/eina/eina_bench_promise.c +++ b/src/benchmarks/eina/eina_bench_promise.c @@ -44,16 +44,16 @@ struct value_type int h; }; -void cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) +void cb(void* data EINA_UNUSED, void* value) { struct value_type* p = value; volatile int v = p->x * p->y * p->w * p->h; (void)v; } -void pointer_cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) +void pointer_cb(void* data EINA_UNUSED, void* value) { - struct value_type* p = *(struct value_type**)value; + struct value_type* p = value; volatile int v = p->x * p->y * p->w * p->h; (void)v; } @@ -199,7 +199,7 @@ eina_bench_promise_copy_value_set_before_then(int request) static void indirect_free(void* p) { - free(*(void**)p); + free(p); } static void --