summaryrefslogtreecommitdiff
path: root/src/lib/eina/eina_promise.c
diff options
context:
space:
mode:
authorFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:15:57 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-03 18:15:57 -0300
commite79eb53e8d20bdb4838fbb42c9e5b1ee47b7f263 (patch)
tree3b38de336ae0346543b4e5100d83da88720906f1 /src/lib/eina/eina_promise.c
parent09446ccb90c1f3180e5b2e0a52b3ce2c78c7c140 (diff)
eina: Remove Eina_Promise* parameter in promise callback
Remove not very useful parameter to eina_promise_then callbacks.
Diffstat (limited to '')
-rw-r--r--src/lib/eina/eina_promise.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/eina/eina_promise.c b/src/lib/eina/eina_promise.c
index 71f0381e70..e1fda3ca93 100644
--- a/src/lib/eina/eina_promise.c
+++ b/src/lib/eina/eina_promise.c
@@ -169,7 +169,7 @@ _eina_promise_then_calls(_Eina_Promise_Default_Owner* promise)
169 if (error) 169 if (error)
170 { 170 {
171 if (callback->error_cb) 171 if (callback->error_cb)
172 (*callback->error_cb)(callback->data, promise->promise.error, &promise->promise.vtable); 172 (*callback->error_cb)(callback->data, promise->promise.error);
173 } 173 }
174 else if (callback->callback) 174 else if (callback->callback)
175 { 175 {
@@ -177,10 +177,10 @@ _eina_promise_then_calls(_Eina_Promise_Default_Owner* promise)
177 { 177 {
178 char* buffer = promise->value; 178 char* buffer = promise->value;
179 void** p = (void**)buffer; 179 void** p = (void**)buffer;
180 (*callback->callback)(callback->data, *p, &promise->promise.vtable); 180 (*callback->callback)(callback->data, *p);
181 } 181 }
182 else 182 else
183 (*callback->callback)(callback->data, &promise->value[0], &promise->promise.vtable); 183 (*callback->callback)(callback->data, &promise->value[0]);
184 } 184 }
185 free(callback); 185 free(callback);
186 _eina_promise_unref(&promise->promise); 186 _eina_promise_unref(&promise->promise);