summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
Diffstat (limited to 'src/benchmarks')
-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
44 int h; 44 int h;
45}; 45};
46 46
47void cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) 47void cb(void* data EINA_UNUSED, void* value)
48{ 48{
49 struct value_type* p = value; 49 struct value_type* p = value;
50 volatile int v = p->x * p->y * p->w * p->h; 50 volatile int v = p->x * p->y * p->w * p->h;
51 (void)v; 51 (void)v;
52} 52}
53 53
54void pointer_cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) 54void pointer_cb(void* data EINA_UNUSED, void* value)
55{ 55{
56 struct value_type* p = *(struct value_type**)value; 56 struct value_type* p = value;
57 volatile int v = p->x * p->y * p->w * p->h; 57 volatile int v = p->x * p->y * p->w * p->h;
58 (void)v; 58 (void)v;
59} 59}
@@ -199,7 +199,7 @@ eina_bench_promise_copy_value_set_before_then(int request)
199 199
200static void indirect_free(void* p) 200static void indirect_free(void* p)
201{ 201{
202 free(*(void**)p); 202 free(p);
203} 203}
204 204
205static void 205static void