aboutsummaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2017-10-16 21:24:07 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2017-10-23 13:00:32 +0200
commit29cdbe709db6af42775c1abc3499a80ad73159d0 (patch)
tree42b6b6cd3f03834f437b4f76abff5ab6ba95fc98 /bindings
parent201b3b1745c1d5138d904a37a82d185bc610c4da (diff)
afb-api-dyn: Uniform return 0 on success
Change-Id: I6ca079fa84547928f999e07d1925202a1e14850f Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'bindings')
-rw-r--r--bindings/samples/ave.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings/samples/ave.c b/bindings/samples/ave.c
index 6c3bf92c..a4b4144d 100644
--- a/bindings/samples/ave.c
+++ b/bindings/samples/ave.c
@@ -484,6 +484,8 @@ int afbBindingVdyn(afb_dynapi *dynapi)
for (i = 0; apis[i] ; i++) {
rc = afb_dynapi_new_api(dynapi, apis[i], NULL, build_api, (void*)apis[i]);
+ if (rc < 0)
+ AFB_DYNAPI_ERROR(dynapi, "can't create API %s", apis[i]);
}
return 0;
}