X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafb-supervision.c;h=1ff8f8b56b0337ec5a0baf35a09ff0b71cbed90c;hb=393a809105baea0dd694cbac57c11f229d50b6e6;hp=0f8a16bb16b55dc1ecafd4be2310901eb67f98ae;hpb=d69f7604c515e211f8021306b5aa51044f927add;p=src%2Fapp-framework-binder.git diff --git a/src/afb-supervision.c b/src/afb-supervision.c index 0f8a16bb..1ff8f8b5 100644 --- a/src/afb-supervision.c +++ b/src/afb-supervision.c @@ -291,7 +291,6 @@ static const char *verbs[] = { "break", "config", "do", "exit", "sclose", "slist", "trace", "wait" }; enum { Break , Config , Do , Exit , Sclose , Slist , Trace , Wait }; - static void on_supervision_call(void *closure, struct afb_xreq *xreq) { int i, rc; @@ -349,7 +348,8 @@ static void on_supervision_call(void *closure, struct afb_xreq *xreq) if (!trace) trace = afb_trace_create(supervision_apiname, NULL /* not bound to any session */); - req = afb_xreq_unstore((struct afb_stored_req*)xreq); + req = xreq_to_req(xreq); + add = drop = NULL; wrap_json_unpack(args, "{s?o s?o}", "add", &add, "drop", &drop); if (add) { rc = afb_trace_add(req, add, trace);