aboutsummaryrefslogtreecommitdiffstats
path: root/src/benchmarks/eina/eina_bench_promise.c
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-04 13:49:51 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 21:57:08 -0300
commitc6733fbbed5dbf73d23cf32f1f15d557f13e8800 (patch)
tree7d2d00a3cdd4674a931cb98b954a90efa0ac3607 /src/benchmarks/eina/eina_bench_promise.c
parenteo: Fix compilation of benchmark (diff)
downloadefl-c6733fbbed5dbf73d23cf32f1f15d557f13e8800.tar.gz
eina: Fixes on promises benchmark
- Updated after pointer vs value change - Updated callbacks after removal of promise argument
Diffstat (limited to 'src/benchmarks/eina/eina_bench_promise.c')
-rw-r--r--src/benchmarks/eina/eina_bench_promise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/eina/eina_bench_promise.c b/src/benchmarks/eina/eina_bench_promise.c
index ee6153ca22..90a39dfbb8 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