X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=bindings%2Fsamples%2Fhello3.c;h=37da6127aaa522049a7dfe0f11e5cc4ba3fd93e6;hb=refs%2Fchanges%2F97%2F21897%2F2;hp=131e0e43bbe0377a99f2a98cf2642f55efb45056;hpb=75083317eb9a49eb9b65704c81a90c1cf44544d9;p=src%2Fapp-framework-binder.git diff --git a/bindings/samples/hello3.c b/bindings/samples/hello3.c index 131e0e43..37da6127 100644 --- a/bindings/samples/hello3.c +++ b/bindings/samples/hello3.c @@ -424,7 +424,7 @@ static void broadcast(afb_req_t request) afb_req_success(request, NULL, NULL); pthread_mutex_unlock(&mutex); } else if (name != NULL) { - if (0 > afb_daemon_broadcast_event(name, object)) + if (0 > afb_daemon_broadcast_event(name, json_object_get(object))) afb_req_fail(request, "failed", "broadcast error"); else afb_req_success(request, NULL, NULL); @@ -627,7 +627,6 @@ static void in_after (afb_req_t request) char *te; double td; struct timespec t; - void (*calling)(afb_req_t); /* get the type */ ty = afb_req_value(request, "type") ?: "call";